Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -124,6 +124,8 @@ def twitch_loader(link):
|
|
124 |
os.system(f"twitch-dl download -q audio_only {link} --output twitch.wav")
|
125 |
return process('/home/user/app/twitch.wav')
|
126 |
|
|
|
|
|
127 |
|
128 |
with demo:
|
129 |
gr.Markdown("Select your input type.")
|
@@ -141,6 +143,7 @@ with demo:
|
|
141 |
text_button4 = gr.Button("Flip")
|
142 |
with gr.TabItem("From youtube"):
|
143 |
with gr.Row():
|
|
|
144 |
youtube_input = gr.Textbox(
|
145 |
label="Insert your youtube link here.", placeholder='https://www.youtube.com/watch?v=dQw4w9WgXcQ')
|
146 |
youtube_output = gr.Textbox()
|
|
|
124 |
os.system(f"twitch-dl download -q audio_only {link} --output twitch.wav")
|
125 |
return process('/home/user/app/twitch.wav')
|
126 |
|
127 |
+
embed_html = '<iframe width="560" height="315" src="https://www.youtube.com/embed/EngW7tLk6R8" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>'
|
128 |
+
|
129 |
|
130 |
with demo:
|
131 |
gr.Markdown("Select your input type.")
|
|
|
143 |
text_button4 = gr.Button("Flip")
|
144 |
with gr.TabItem("From youtube"):
|
145 |
with gr.Row():
|
146 |
+
gr.HTML(embed_html)
|
147 |
youtube_input = gr.Textbox(
|
148 |
label="Insert your youtube link here.", placeholder='https://www.youtube.com/watch?v=dQw4w9WgXcQ')
|
149 |
youtube_output = gr.Textbox()
|