PierreBrunelle commited on
Commit
7a25568
·
verified ·
1 Parent(s): 95d6281

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -121,17 +121,6 @@ with gr.Blocks(theme=Soft()) as demo:
121
  3. **Detects Objects**: Leverages Pixeltable's YOLOX integration to produce object detection results.
122
  4. **Visualizes Output**: Displays the processed video alongside a sample of the original frames.
123
  """)
124
-
125
- with gr.Column():
126
- gr.Examples(
127
- examples=[
128
- ["bangkok.mp4", "yolox_tiny", 0.25],
129
- ["lotr.mp4", "yolox_m", 0.3],
130
- ["mi.mp4", "yolox_tiny", 0.5],
131
- ],
132
- inputs=[video_file, model_id, threshold],
133
- fn=process_video
134
- )
135
 
136
  # File upload components for ground truth and PDF documents
137
  with gr.Row():
@@ -146,7 +135,18 @@ with gr.Blocks(theme=Soft()) as demo:
146
  )
147
 
148
  threshold = gr.Slider(minimum=0.1, maximum=0.9, value=0.25, step=0.05, label="Threshold")
149
-
 
 
 
 
 
 
 
 
 
 
 
150
  # Button to trigger file processing
151
  process_button = gr.Button("Process Video")
152
 
 
121
  3. **Detects Objects**: Leverages Pixeltable's YOLOX integration to produce object detection results.
122
  4. **Visualizes Output**: Displays the processed video alongside a sample of the original frames.
123
  """)
 
 
 
 
 
 
 
 
 
 
 
124
 
125
  # File upload components for ground truth and PDF documents
126
  with gr.Row():
 
135
  )
136
 
137
  threshold = gr.Slider(minimum=0.1, maximum=0.9, value=0.25, step=0.05, label="Threshold")
138
+
139
+ with gr.Column():
140
+ gr.Examples(
141
+ examples=[
142
+ ["bangkok.mp4", "yolox_tiny", 0.25],
143
+ ["lotr.mp4", "yolox_m", 0.3],
144
+ ["mi.mp4", "yolox_tiny", 0.5],
145
+ ],
146
+ inputs=[video_file, model_id, threshold],
147
+ fn=process_video
148
+ )
149
+
150
  # Button to trigger file processing
151
  process_button = gr.Button("Process Video")
152