NeuralFalcon commited on
Commit
de8b184
·
verified ·
1 Parent(s): 1a730f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -262,6 +262,8 @@ def video_watermark_remover(video_path):
262
 
263
 
264
  import gradio as gr
 
 
265
  def gradio_interface(video_file):
266
  return video_watermark_remover(video_file)
267
 
@@ -273,4 +275,12 @@ demo = gr.Interface(
273
  description="Upload a video, and this tool will remove watermarks using blurring techniques."
274
  )
275
 
276
- demo.launch()
 
 
 
 
 
 
 
 
 
262
 
263
 
264
  import gradio as gr
265
+ import click
266
+
267
  def gradio_interface(video_file):
268
  return video_watermark_remover(video_file)
269
 
 
275
  description="Upload a video, and this tool will remove watermarks using blurring techniques."
276
  )
277
 
278
+ # demo.launch()
279
+
280
+ @click.command()
281
+ @click.option("--debug", is_flag=True, default=False, help="Enable debug mode.")
282
+ @click.option("--share", is_flag=True, default=False, help="Enable sharing of the interface.")
283
+ def main(debug, share):
284
+ demo.queue().launch(debug=debug, share=share)
285
+ if __name__ == "__main__":
286
+ main()