Spaces:
Build error
Build error
Download app.py from Caglarari/tabbedinterface: direct link, hf CLI and curl.
- Browser
- Download file 392 Bytes
-
https://huggingface.co/spaces/Caglarari/tabbedinterface/resolve/main/app.py
- Command line
-
hf download hf://spaces/Caglarari/tabbedinterface/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Caglarari/tabbedinterface/resolve/main/app.py
392 Bytes
| import gradio as gr | |
| def greet(name): | |
| return "Hello " + name + "!!" | |
| def greet2(name): | |
| return "Hello " + name + "!!!!" | |
| hello_world = gr.Interface(fn=greet, inputs="text", outputs="text") | |
| bye_world = gr.Interface(fn=greet2, inputs="text", outputs="text") | |
| demo = gr.TabbedInterface([hello_world, bye_world], ["Hello World", "Bye World"]) | |
| if __name__ == "__main__": | |
| demo.launch() |