joaogante HF staff commited on
Commit
7aef7b8
1 Parent(s): 976eb10

initial commit

Browse files
Files changed (1) hide show
  1. app.py +15 -4
app.py CHANGED
@@ -1,7 +1,18 @@
1
  import gradio as gr
2
 
3
- def greet(name):
4
- return "Hello " + name + "!!"
5
 
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
- iface.launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
 
 
 
3
 
4
+ def update(name):
5
+ return f"Welcome to Gradio, {name}!"
6
+
7
+ demo = gr.Blocks()
8
+
9
+ with demo:
10
+ with gr.Tabs():
11
+ with gr.TabItem("Lion"):
12
+ gr.Image("lion.jpg")
13
+ gr.Button("New Lion")
14
+ with gr.TabItem("Tiger"):
15
+ gr.Image("tiger.jpg")
16
+ gr.Button("New Tiger")
17
+
18
+ demo.launch()