dragonSwing commited on
Commit
f2420a8
1 Parent(s): 627b98e

Add duplicate badge

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -89,7 +89,9 @@ def process_via_url(
89
  if validators.url(url):
90
  video_path = download_video(url)
91
  if video_path is None:
92
- raise gr.Error("An error occurred while downloading the video, please try again later")
 
 
93
  return process(
94
  video_path,
95
  bg_type,
@@ -195,6 +197,12 @@ with gr.Blocks(css="style.css") as demo:
195
  ],
196
  [file_url, file_output],
197
  )
 
 
 
 
 
 
198
 
199
  file_url.submit(
200
  process_via_url,
 
89
  if validators.url(url):
90
  video_path = download_video(url)
91
  if video_path is None:
92
+ raise gr.Error(
93
+ "An error occurred while downloading the video, please try again later"
94
+ )
95
  return process(
96
  video_path,
97
  bg_type,
 
197
  ],
198
  [file_url, file_output],
199
  )
200
+
201
+ with gr.Row(elem_classes=["container"]):
202
+ gr.HTML(
203
+ """<br><br><br><center>You can duplicate this Space to skip the queue:<a href="https://huggingface.co/spaces/dragonSwing/video2slide?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a><br>
204
+ <p><img src="https://visitor-badge.glitch.me/badge?page_id=dragonswing.video2slide" alt="visitors"></p></center>"""
205
+ )
206
 
207
  file_url.submit(
208
  process_via_url,