2e78bab e5808c5 2e78bab e5808c5 2e78bab b82f603
1
2
3
4
5
6
7
8
9
10
11
12
13
import gradio as gr def hello(name): return f"Hello {name}!" demo = gr.Interface( fn=hello, inputs=gr.Textbox(label="Name"), outputs=gr.Textbox(label="Greeting") ) if __name__ == "__main__": demo.launch()