alihmaou commited on
Commit
6994f46
·
1 Parent(s): 1e8b999

Lambda commit

Browse files
Files changed (2) hide show
  1. app.py +3 -3
  2. tools/datasetananalysis.py +1 -1
app.py CHANGED
@@ -1,17 +1,17 @@
1
  import gradio as gr
2
- from tools import jokes, weather, dataananalysis
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=jokes.longjoke,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
- "Analyse d'un dataset"
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 smalljoke(dataseturl):
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: