Spaces:
Runtime error
Runtime error
update
Browse files
app.py
CHANGED
@@ -297,9 +297,10 @@ def respond(_question, _chat_bot, _app_cfg, params_form):
|
|
297 |
'repetition_penalty': 1.05,
|
298 |
"max_new_tokens": 2048
|
299 |
}
|
300 |
-
|
|
|
301 |
if files_cnts[1] + videos_cnt > 0:
|
302 |
-
params["max_inp_length"] = 4352 # 4096+256
|
303 |
params["use_image_id"] = False
|
304 |
params["max_slice_nums"] = 1 if count_video_frames(_context) > 16 else 2
|
305 |
|
|
|
297 |
'repetition_penalty': 1.05,
|
298 |
"max_new_tokens": 2048
|
299 |
}
|
300 |
+
params["max_inp_length"] = 4352 # 4096+256
|
301 |
+
|
302 |
if files_cnts[1] + videos_cnt > 0:
|
303 |
+
#params["max_inp_length"] = 4352 # 4096+256
|
304 |
params["use_image_id"] = False
|
305 |
params["max_slice_nums"] = 1 if count_video_frames(_context) > 16 else 2
|
306 |
|