Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -411,14 +411,12 @@ def toggle_think_mode(current_state):
|
|
411 |
button_label = "🧠DeepThink💡1minute⏳" if global_think_mode else "🧠Think"
|
412 |
return new_state, button_label
|
413 |
|
414 |
-
|
415 |
-
demo = gr.Blocks( theme='NoCrypt/miku')
|
416 |
|
417 |
|
418 |
with demo:
|
419 |
think_mode = gr.State(False) # Lưu trạng thái Think Mode
|
420 |
-
|
421 |
-
think_button = gr.Button("🧠Think", elem_id="think-button", variant="secondary")
|
422 |
|
423 |
chat_demo_interface = gr.ChatInterface(
|
424 |
fn=chat,
|
@@ -437,7 +435,7 @@ with demo:
|
|
437 |
theme='NoCrypt/miku'
|
438 |
)
|
439 |
|
440 |
-
|
441 |
|
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])
|
|
|
411 |
button_label = "🧠DeepThink💡1minute⏳" if global_think_mode else "🧠Think"
|
412 |
return new_state, button_label
|
413 |
|
414 |
+
demo = gr.Blocks(css=CSS,js=js, theme='NoCrypt/miku')
|
415 |
+
# demo = gr.Blocks( theme='NoCrypt/miku')
|
416 |
|
417 |
|
418 |
with demo:
|
419 |
think_mode = gr.State(False) # Lưu trạng thái Think Mode
|
|
|
|
|
420 |
|
421 |
chat_demo_interface = gr.ChatInterface(
|
422 |
fn=chat,
|
|
|
435 |
theme='NoCrypt/miku'
|
436 |
)
|
437 |
|
438 |
+
think_button = gr.Button("🧠Think", elem_id="think-button", variant="secondary")
|
439 |
|
440 |
# Khi nhấn nút, trạng thái think_mode thay đổi + đổi nhãn nút
|
441 |
think_button.click(toggle_think_mode, inputs=[think_mode], outputs=[think_mode, think_button])
|