m-ric HF staff commited on
Commit
bdd87a0
1 Parent(s): 3e64005

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
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()