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


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.")
    ],
    [
        "Histoire courte",
        "Histoire longue",
        "Description d'un dataset"
    ]
)


demo.launch(mcp_server=True)