finalf0 commited on
Commit
9b49bc2
1 Parent(s): def3d69
Files changed (1) hide show
  1. app.py +3 -2
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