Added a diagram generator (based on my drawittome tool)
Browse files
app.py
CHANGED
@@ -4,16 +4,17 @@ from tools import jokes, weather, datasetananalysis, diagrams
|
|
4 |
|
5 |
demo = gr.TabbedInterface(
|
6 |
[
|
7 |
-
gr.Interface(fn=
|
8 |
-
gr.Interface(fn=jokes.
|
9 |
-
gr.Interface(fn=
|
10 |
-
gr.Interface(fn=
|
|
|
11 |
],
|
12 |
[
|
|
|
13 |
"Histoire courte (test)",
|
14 |
"Histoire longue (test)",
|
15 |
"Description d'un dataset (mockup)",
|
16 |
-
"Générateur de diagrammes"
|
17 |
]
|
18 |
)
|
19 |
|
|
|
4 |
|
5 |
demo = gr.TabbedInterface(
|
6 |
[
|
7 |
+
gr.Interface(fn=diagrams.generateDiagram, inputs=["text","text"], outputs=["html","text","text"], title="Diagrams generator (candidate)", description="Generates a mermaid diagram to explain a submited text. The diagram is returned in different formats(svg and raw code)"),
|
8 |
+
gr.Interface(fn=jokes.smalljoke,inputs=["text"],outputs="text", title="Small joke teller (testing purposes)", description="Tells a small joke in french"),
|
9 |
+
gr.Interface(fn=jokes.longjoke,inputs=["text","text","text","text" ],outputs="text", title="Long joke teller (testing purposes)", description="Tells a longer joke in french"),
|
10 |
+
gr.Interface(fn=datasetananalysis.describedataset,inputs=["text" ],outputs="text", title="Dataset descriptor (mockup)", description="Provides a usefull description of a dataset to allow content and structure awareness before SQL requesting on it."),
|
11 |
+
|
12 |
],
|
13 |
[
|
14 |
+
"Générateur de diagrammes",
|
15 |
"Histoire courte (test)",
|
16 |
"Histoire longue (test)",
|
17 |
"Description d'un dataset (mockup)",
|
|
|
18 |
]
|
19 |
)
|
20 |
|