ParsaKhaz commited on
Commit
94480e1
·
verified ·
1 Parent(s): 1f395f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -86,12 +86,13 @@ def process_video_file(video_file, detect_keyword, box_style, ffmpeg_preset, row
86
  raise gr.Error(f"Error processing video: {str(e)}")
87
 
88
  # Create the Gradio interface
89
- with gr.Blocks(title="Video Object Detection with Moondream") as app:
90
- gr.Markdown("# Video Object Detection with Moondream")
91
  gr.Markdown("""
92
- This app uses [Moondream](https://github.com/vikhyat/moondream), a powerful yet lightweight vision-language model,
93
  to detect and visualize objects in videos. Moondream can recognize a wide variety of objects, people, text, and more
94
- with high accuracy while being much smaller than traditional models.
 
95
 
96
  Upload a video and specify what you want to detect. The app will process each frame using Moondream and visualize
97
  the detections using your chosen style.
@@ -108,7 +109,7 @@ with gr.Blocks(title="Video Object Detection with Moondream") as app:
108
  info="Moondream can detect almost anything you can describe in natural language"
109
  )
110
  box_style_input = gr.Radio(
111
- choices=['censor', 'yolo', 'hitmarker'],
112
  value='censor',
113
  label="Visualization Style",
114
  info="Choose how to display detections"
@@ -156,6 +157,7 @@ with gr.Blocks(title="Video Object Detection with Moondream") as app:
156
  - [GitHub Repository](https://github.com/vikhyat/moondream)
157
  - [Hugging Face Space](https://huggingface.co/vikhyatk/moondream2)
158
  - [Python Package](https://pypi.org/project/moondream/)
 
159
  """)
160
 
161
  # Event handlers
 
86
  raise gr.Error(f"Error processing video: {str(e)}")
87
 
88
  # Create the Gradio interface
89
+ with gr.Blocks(title="Promptable Video Redaction") as app:
90
+ gr.Markdown("# Promptable Video Redaction with Moondream")
91
  gr.Markdown("""
92
+ This app uses [Moondream 2B](https://github.com/vikhyat/moondream), a powerful yet lightweight vision-language model,
93
  to detect and visualize objects in videos. Moondream can recognize a wide variety of objects, people, text, and more
94
+ with high accuracy while being much smaller than traditional models. This enables Moondream to redact content from
95
+ video quickly with the object detect capability.
96
 
97
  Upload a video and specify what you want to detect. The app will process each frame using Moondream and visualize
98
  the detections using your chosen style.
 
109
  info="Moondream can detect almost anything you can describe in natural language"
110
  )
111
  box_style_input = gr.Radio(
112
+ choices=['censor', 'bounding-box', 'hitmarker'],
113
  value='censor',
114
  label="Visualization Style",
115
  info="Choose how to display detections"
 
157
  - [GitHub Repository](https://github.com/vikhyat/moondream)
158
  - [Hugging Face Space](https://huggingface.co/vikhyatk/moondream2)
159
  - [Python Package](https://pypi.org/project/moondream/)
160
+ - [Promptable Redaction Recipe](https://docs.moondream.ai/recipes/)
161
  """)
162
 
163
  # Event handlers