Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,16 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
|
|
|
|
|
| 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()
|