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