File size: 1,146 Bytes
2211366
8a7669a
2211366
 
5a6b27d
 
1e8b999
 
8a7669a
 
5a6b27d
 
 
1e8b999
8a7669a
 
5a6b27d
2211366
 
5a6b27d
2211366
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import gradio as gr
from tools import jokes, weather, datasetananalysis, diagrams


demo = gr.TabbedInterface(
    [
        gr.Interface(fn=jokes.smalljoke,inputs=["text"],outputs="text",    title="Small joke teller",    description="Tells a small joke in french"),
        gr.Interface(fn=jokes.longjoke,inputs=["text","text","text","text" ],outputs="text",    title="Long joke teller",    description="Tells a longer joke in french"),
        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."),
        gr.Interface(fn=diagrams.generateDiagram, inputs=["text","text"], outputs=["html","html","text","text"], title="Diagrams generator", description="Generates a mermaid diagram to explain a submited text. The diagram is returned in different formats(svg and raw code)")
    ],
    [
        "Histoire courte",
        "Histoire longue",
        "Description d'un dataset",
        "Générateur de diagrammes"
    ]
)


demo.launch(mcp_server=True)