jacobda commited on
Commit
948b85d
·
1 Parent(s): 5541197

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -4
app.py CHANGED
@@ -1,7 +1,16 @@
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
+ from pytube import YouTube
3
 
4
+ with demo:
5
+ gr.Markdown(
6
+ """
7
+ # Flip Text!
8
+ Start typing below to see the output.
9
+ """
10
+ )
11
+ input = gr.Textbox(placeholder="Flip this text")
12
+ output = gr.Textbox()
13
 
14
+ input.change(fn=flip_text, inputs=input, outputs=output)
15
+
16
+ demo.launch()