dragonSwing commited on
Commit
be51cd5
1 Parent(s): 8c63f23

Escape debug mode

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -89,7 +89,7 @@ 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("Please enter a valid video URL")
93
  return process(
94
  video_path,
95
  bg_type,
@@ -222,4 +222,4 @@ with gr.Blocks(css="style.css") as demo:
222
  file_output,
223
  )
224
 
225
- demo.queue(concurrency_count=4).launch(debug=True)
 
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,
 
222
  file_output,
223
  )
224
 
225
+ demo.queue(concurrency_count=4).launch()