58e3643
1
2
3
4
5
6
7
8
9
import gradio as gr def my_api(text): return f"You said: {text}" iface = gr.Interface(fn=my_api, inputs="text", outputs="text") iface.launch()