khang119966 commited on
Commit
e7cfa0d
·
verified ·
1 Parent(s): 12bcfb9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -132,7 +132,7 @@ We currently only support one image at the start of the context! Please start a
132
  pixel_values = None
133
 
134
 
135
- generation_config = dict(max_new_tokens= 512, do_sample=False, num_beams = 3, repetition_penalty=1.5)
136
 
137
  if len(history) == 0:
138
  if pixel_values is not None:
@@ -165,7 +165,7 @@ We currently only support one image at the start of the context! Please start a
165
  for new_text in response:
166
  buffer += new_text
167
  generated_text_without_prompt = buffer[:]
168
- time.sleep(0.005)
169
  yield generated_text_without_prompt
170
 
171
  CSS ="""
 
132
  pixel_values = None
133
 
134
 
135
+ generation_config = dict(max_new_tokens= 1024, do_sample=False, num_beams = 3, repetition_penalty=1.5)
136
 
137
  if len(history) == 0:
138
  if pixel_values is not None:
 
165
  for new_text in response:
166
  buffer += new_text
167
  generated_text_without_prompt = buffer[:]
168
+ time.sleep(0.02)
169
  yield generated_text_without_prompt
170
 
171
  CSS ="""