Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -87,7 +87,7 @@ def predict_answer(video, image, question):
|
|
| 87 |
image = extract_frames(frames[2])
|
| 88 |
image_tensor = model.image_preprocess([image])
|
| 89 |
# Generate the answer
|
| 90 |
-
|
| 91 |
input_ids,
|
| 92 |
max_new_tokens=25,
|
| 93 |
images=image_tensor,
|
|
|
|
| 87 |
image = extract_frames(frames[2])
|
| 88 |
image_tensor = model.image_preprocess([image])
|
| 89 |
# Generate the answer
|
| 90 |
+
output_ids = model.generate(
|
| 91 |
input_ids,
|
| 92 |
max_new_tokens=25,
|
| 93 |
images=image_tensor,
|