Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -250,7 +250,6 @@ We currently only support one image at the start of the context! Please start a
|
|
250 |
time.sleep(0.02)
|
251 |
yield generated_text_without_prompt
|
252 |
else:
|
253 |
-
global_think_mode = False
|
254 |
####################################################### thinking #######################################################
|
255 |
generation_config = dict(max_new_tokens= 2000, do_sample=False, num_beams = 2, repetition_penalty=2.5)
|
256 |
|
@@ -443,6 +442,6 @@ with demo:
|
|
443 |
# Khi nhấn nút, trạng thái think_mode thay đổi + đổi nhãn nút
|
444 |
think_button.click(toggle_think_mode, inputs=[think_mode], outputs=[think_mode, think_button])
|
445 |
# Reset nút Think sau khi chat hoàn tất
|
446 |
-
chat_demo_interface.submit(reset_think_mode, inputs=[], outputs=[think_mode, think_button])
|
447 |
|
448 |
demo.queue().launch()
|
|
|
250 |
time.sleep(0.02)
|
251 |
yield generated_text_without_prompt
|
252 |
else:
|
|
|
253 |
####################################################### thinking #######################################################
|
254 |
generation_config = dict(max_new_tokens= 2000, do_sample=False, num_beams = 2, repetition_penalty=2.5)
|
255 |
|
|
|
442 |
# Khi nhấn nút, trạng thái think_mode thay đổi + đổi nhãn nút
|
443 |
think_button.click(toggle_think_mode, inputs=[think_mode], outputs=[think_mode, think_button])
|
444 |
# Reset nút Think sau khi chat hoàn tất
|
445 |
+
# chat_demo_interface.submit(reset_think_mode, inputs=[], outputs=[think_mode, think_button])
|
446 |
|
447 |
demo.queue().launch()
|