ankandrew commited on
Commit
9d8cadf
·
verified ·
1 Parent(s): 607cc62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -9
app.py CHANGED
@@ -154,22 +154,13 @@ def model_inference(input_dict, history):
154
  time.sleep(0.01)
155
  yield buffer
156
 
157
- examples = [
158
- [{"text": "Describe the Image?", "files": ["example_images/document.jpg"]}],
159
- [{"text": "@video-infer Explain the content of the Advertisement", "files": ["example_images/videoplayback.mp4"]}],
160
- [{"text": "@video-infer Explain the content of the video in detail", "files": ["example_images/breakfast.mp4"]}],
161
- [{"text": "@video-infer Explain the content of the video.", "files": ["example_images/sky.mp4"]}],
162
- ]
163
-
164
  demo = gr.ChatInterface(
165
  fn=model_inference,
166
  description="# **MiMo-VL-7B-RL `@video-infer for video understanding`**",
167
- examples=examples,
168
  fill_height=True,
169
  textbox=gr.MultimodalTextbox(label="Query Input", file_types=["image", "video"], file_count="multiple"),
170
  stop_btn="Stop Generation",
171
  multimodal=True,
172
- cache_examples=False,
173
  )
174
 
175
  demo.launch(debug=True)
 
154
  time.sleep(0.01)
155
  yield buffer
156
 
 
 
 
 
 
 
 
157
  demo = gr.ChatInterface(
158
  fn=model_inference,
159
  description="# **MiMo-VL-7B-RL `@video-infer for video understanding`**",
 
160
  fill_height=True,
161
  textbox=gr.MultimodalTextbox(label="Query Input", file_types=["image", "video"], file_count="multiple"),
162
  stop_btn="Stop Generation",
163
  multimodal=True,
 
164
  )
165
 
166
  demo.launch(debug=True)