hiyouga commited on
Commit
1ae1376
1 Parent(s): a2f5d42

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -71,6 +71,7 @@ def stream_chat(message: Dict[str, str], history: list):
71
  pixel_values=pixel_values,
72
  streamer=streamer,
73
  max_new_tokens=256,
 
74
  )
75
 
76
  t = Thread(target=model.generate, kwargs=generate_kwargs)
 
71
  pixel_values=pixel_values,
72
  streamer=streamer,
73
  max_new_tokens=256,
74
+ do_sample=True,
75
  )
76
 
77
  t = Thread(target=model.generate, kwargs=generate_kwargs)