|
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) |