chenjoya commited on
Commit
b58278c
·
verified ·
1 Parent(s): 924633d

Update demo/infer.py

Browse files
Files changed (1) hide show
  1. demo/infer.py +2 -3
demo/infer.py CHANGED
@@ -162,7 +162,6 @@ class LiveCCDemoInfer:
162
  self,
163
  query: str,
164
  state: dict,
165
- default_query: str = 'Please describe the video.',
166
  do_sample: bool = False,
167
  repetition_penalty: float = 1.05,
168
  **kwargs,
@@ -182,7 +181,7 @@ class LiveCCDemoInfer:
182
  "role": "user",
183
  "content": [
184
  {"type": "video", "video": video_path},
185
- {"type": "text", "text": query if query else default_query},
186
  ],
187
  }
188
 
@@ -190,7 +189,7 @@ class LiveCCDemoInfer:
190
  message = {
191
  "role": "user",
192
  "content": [
193
- {"type": "text", "text": query if query else default_query},
194
  ],
195
  }
196
  image_inputs, video_inputs = process_vision_info([message])
 
162
  self,
163
  query: str,
164
  state: dict,
 
165
  do_sample: bool = False,
166
  repetition_penalty: float = 1.05,
167
  **kwargs,
 
181
  "role": "user",
182
  "content": [
183
  {"type": "video", "video": video_path},
184
+ {"type": "text", "text": query},
185
  ],
186
  }
187
 
 
189
  message = {
190
  "role": "user",
191
  "content": [
192
+ {"type": "text", "text": query},
193
  ],
194
  }
195
  image_inputs, video_inputs = process_vision_info([message])