NeuralFalcon commited on
Commit
9f2e634
·
verified ·
1 Parent(s): b7ed7b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -278,12 +278,16 @@ blur_types = ["strong_gaussian", "median"]
278
  demo = gr.Interface(
279
  fn=gradio_interface,
280
  inputs=[
281
- gr.File(label="Upload Video"),
282
  gr.Dropdown(choices=blur_types, label="Blur Type", value="strong_gaussian") # Default to median
283
  ],
284
  outputs=[gr.File(label="Download Video"),gr.Video(label="Play Video")],
285
- title="Video Watermark Remover",
286
- description="Upload a video, and this tool will remove watermarks using blurring techniques."
 
 
 
 
287
  )
288
 
289
  # demo.launch()
@@ -294,4 +298,4 @@ demo = gr.Interface(
294
  def main(debug, share):
295
  demo.queue().launch(debug=debug, share=share)
296
  if __name__ == "__main__":
297
- main()
 
278
  demo = gr.Interface(
279
  fn=gradio_interface,
280
  inputs=[
281
+ gr.Video(label="Upload Video"),
282
  gr.Dropdown(choices=blur_types, label="Blur Type", value="strong_gaussian") # Default to median
283
  ],
284
  outputs=[gr.File(label="Download Video"),gr.Video(label="Play Video")],
285
+ title="Remove Watermark Text from Video",
286
+ description="Upload a video, and this tool will blur texts",
287
+ examples=[
288
+ ["./examples/chinese.mp4"],
289
+ ["./examples/english.mp4"]
290
+ ]
291
  )
292
 
293
  # demo.launch()
 
298
  def main(debug, share):
299
  demo.queue().launch(debug=debug, share=share)
300
  if __name__ == "__main__":
301
+ main()