1489919
1
2
3
4
5
6
7
8
9
import gradio as gr def predict(text): return f"Echo: {text}" iface = gr.Interface(fn=predict, inputs="text", outputs="text") # Launch with API access iface.launch(server_name="0.0.0.0", server_port=7860, share=True)