Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
hello_world = gr.Interface(lambda name: "Hello " + name, "text", "text")
|
| 4 |
+
bye_world = gr.Interface(lambda name: "Bye " + name, "text", "text")
|
| 5 |
+
|
| 6 |
+
demo = gr.TabbedInterface([hello_world, bye_world], ["Hello World", "Bye World"])
|
| 7 |
+
|
| 8 |
+
if __name__ == "__main__":
|
| 9 |
+
demo.launch()
|