Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -173,7 +173,7 @@ Hãy trả lời rất dài theo định dạng sau:
|
|
173 |
"""
|
174 |
|
175 |
|
176 |
-
@spaces.GPU
|
177 |
def chat(message, history):
|
178 |
global global_think_mode
|
179 |
|
@@ -236,7 +236,7 @@ We currently only support one image at the start of the context! Please start a
|
|
236 |
yield generated_text_without_prompt
|
237 |
else:
|
238 |
####################################################### thinking #######################################################
|
239 |
-
generation_config = dict(max_new_tokens= 2000, do_sample=False, num_beams =
|
240 |
|
241 |
if len(history) == 0:
|
242 |
if pixel_values is not None:
|
|
|
173 |
"""
|
174 |
|
175 |
|
176 |
+
@spaces.GPU(duration=120)
|
177 |
def chat(message, history):
|
178 |
global global_think_mode
|
179 |
|
|
|
236 |
yield generated_text_without_prompt
|
237 |
else:
|
238 |
####################################################### thinking #######################################################
|
239 |
+
generation_config = dict(max_new_tokens= 2000, do_sample=False, num_beams = 3, repetition_penalty=2.0)
|
240 |
|
241 |
if len(history) == 0:
|
242 |
if pixel_values is not None:
|