alvarobartt HF Staff commited on
Commit
9cf98e4
·
verified ·
1 Parent(s): 8284ee8

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -71,7 +71,7 @@ class EndpointHandler:
71
  "max_new_tokens": data.get("max_new_tokens", data.get("max_tokens", 128)),
72
  "temperature": data.get("temperature", 0.0),
73
  "do_sample": False, # temperature won't really work unless this is set to True
74
- "use_cache": False, # disabled as otherwise the same prompt with different images won't download the image again
75
  "num_beams": 1,
76
  }
77
  logger.info(
 
71
  "max_new_tokens": data.get("max_new_tokens", data.get("max_tokens", 128)),
72
  "temperature": data.get("temperature", 0.0),
73
  "do_sample": False, # temperature won't really work unless this is set to True
74
+ "use_cache": True,
75
  "num_beams": 1,
76
  }
77
  logger.info(