baohuynhbk14 commited on
Commit
bba6b10
·
1 Parent(s): 24a0f48

Update image path handling in http_bot to use the first image path if available

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -268,7 +268,7 @@ def http_bot(
268
  logger.info(f"==== Image paths ====\n{all_image_paths}")
269
 
270
  response, _ = predict(message,
271
- all_image_paths if len(all_image_paths) > 0 else None,
272
  state,
273
  max_input_tiles,
274
  temperature,
 
268
  logger.info(f"==== Image paths ====\n{all_image_paths}")
269
 
270
  response, _ = predict(message,
271
+ all_image_paths[0] if len(all_image_paths) > 0 else None,
272
  state,
273
  max_input_tiles,
274
  temperature,