Spaces:
Running
on
Zero
Running
on
Zero
khang119966
commited on
Update app.py
Browse files
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=
|
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.
|
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 ="""
|