lbiester commited on
Commit
9afe62f
·
verified ·
1 Parent(s): f9706ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -1
app.py CHANGED
@@ -3,5 +3,17 @@ import gradio as gr
3
  def greet(name):
4
  return "Hello " + name + "!!"
5
 
6
- demo = gr.Interface(fn=greet, inputs="text", outputs="text")
 
 
 
 
 
 
 
 
 
 
 
 
7
  demo.launch()
 
3
  def greet(name):
4
  return "Hello " + name + "!!"
5
 
6
+ with demo:
7
+ gr.Markdown("Flip text or image files using this demo.")
8
+ with gr.Tabs():
9
+ with gr.TabItem("Flip Text"):
10
+ with gr.Row():
11
+ text_input = gr.Textbox()
12
+ text_output = gr.Textbox()
13
+ text_button = gr.Button("Flip")
14
+ with gr.TabItem("Flip Image"):
15
+ interface = gr.Interface(fn=greet, inputs="text", outputs="text")
16
+
17
+ text_button.click(flip_text, inputs=text_input, outputs=text_output)
18
+
19
  demo.launch()