Lambda commit
Browse files- app.py +3 -3
- tools/datasetananalysis.py +1 -1
app.py
CHANGED
@@ -1,17 +1,17 @@
|
|
1 |
import gradio as gr
|
2 |
-
from tools import jokes, weather,
|
3 |
|
4 |
|
5 |
demo = gr.TabbedInterface(
|
6 |
[
|
7 |
gr.Interface(fn=jokes.smalljoke,inputs=["text"],outputs="text", title="Small joke teller", description="Tells a small joke in french"),
|
8 |
gr.Interface(fn=jokes.longjoke,inputs=["text","text","text","text" ],outputs="text", title="Long joke teller", description="Tells a longer joke in french"),
|
9 |
-
gr.Interface(fn=
|
10 |
],
|
11 |
[
|
12 |
"Histoire courte",
|
13 |
"Histoire longue",
|
14 |
-
"
|
15 |
]
|
16 |
)
|
17 |
|
|
|
1 |
import gradio as gr
|
2 |
+
from tools import jokes, weather, datasetananalysis
|
3 |
|
4 |
|
5 |
demo = gr.TabbedInterface(
|
6 |
[
|
7 |
gr.Interface(fn=jokes.smalljoke,inputs=["text"],outputs="text", title="Small joke teller", description="Tells a small joke in french"),
|
8 |
gr.Interface(fn=jokes.longjoke,inputs=["text","text","text","text" ],outputs="text", title="Long joke teller", description="Tells a longer joke in french"),
|
9 |
+
gr.Interface(fn=datasetananalysis.describedataset,inputs=["text" ],outputs="text", title="Dataset descriptor", description="Provides a usefull description of a dataset to allow content and structure awareness before SQL requesting on it.")
|
10 |
],
|
11 |
[
|
12 |
"Histoire courte",
|
13 |
"Histoire longue",
|
14 |
+
"Description d'un dataset"
|
15 |
]
|
16 |
)
|
17 |
|
tools/datasetananalysis.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
def
|
2 |
"""Provides a usefull description of a dataset to allow content and structure awareness before SQL requesting on it.
|
3 |
|
4 |
Args:
|
|
|
1 |
+
def describedataset(dataseturl):
|
2 |
"""Provides a usefull description of a dataset to allow content and structure awareness before SQL requesting on it.
|
3 |
|
4 |
Args:
|