Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,20 +16,16 @@ def _return_yt_html_embed(yt_url):
|
|
| 16 |
return HTML_str
|
| 17 |
|
| 18 |
|
| 19 |
-
|
| 20 |
-
gr.Markdown("YT-Video-Viewer")
|
| 21 |
-
|
| 22 |
-
URL = gr.Textbox("Enter URL here", interactive=True,label="Youtube URL")
|
| 23 |
-
|
| 24 |
-
gr.Interface(
|
| 25 |
fn=_return_yt_html_embed,
|
| 26 |
-
inputs=
|
| 27 |
# outputs=["html", "text"],
|
| 28 |
-
outputs=
|
| 29 |
layout="horizontal",
|
| 30 |
theme="huggingface",
|
| 31 |
title="YouTube Video Viwer",
|
| 32 |
description=("YouTube Video Viwer"),
|
| 33 |
allow_flagging="never",
|
| 34 |
)
|
| 35 |
-
|
|
|
|
|
|
| 16 |
return HTML_str
|
| 17 |
|
| 18 |
|
| 19 |
+
demo = gr.Interface(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
fn=_return_yt_html_embed,
|
| 21 |
+
inputs="text",
|
| 22 |
# outputs=["html", "text"],
|
| 23 |
+
outputs="html",
|
| 24 |
layout="horizontal",
|
| 25 |
theme="huggingface",
|
| 26 |
title="YouTube Video Viwer",
|
| 27 |
description=("YouTube Video Viwer"),
|
| 28 |
allow_flagging="never",
|
| 29 |
)
|
| 30 |
+
|
| 31 |
+
demo.queue(max_size=20).launch(debug=True,share=True)
|