Spaces:
Running
Running
thinking mode
Browse files
app.py
CHANGED
|
@@ -264,7 +264,7 @@ def policy_chat(message, history):
|
|
| 264 |
yield {
|
| 265 |
chatbot: history,
|
| 266 |
thinking_indicator: gr.update(visible=False),
|
| 267 |
-
reasoning_accordion: gr.update(visible=
|
| 268 |
stop_btn: gr.update(visible=True),
|
| 269 |
send_btn: gr.update(interactive=False)
|
| 270 |
}
|
|
@@ -292,7 +292,7 @@ def policy_chat(message, history):
|
|
| 292 |
yield {
|
| 293 |
chatbot: history,
|
| 294 |
thinking_indicator: gr.update(visible=False),
|
| 295 |
-
reasoning_accordion: gr.update(visible=
|
| 296 |
stop_btn: gr.update(visible=True),
|
| 297 |
send_btn: gr.update(interactive=False)
|
| 298 |
}
|
|
@@ -306,7 +306,7 @@ def policy_chat(message, history):
|
|
| 306 |
yield {
|
| 307 |
chatbot: history,
|
| 308 |
thinking_indicator: gr.update(visible=False),
|
| 309 |
-
reasoning_accordion: gr.update(visible=
|
| 310 |
stop_btn: gr.update(visible=True),
|
| 311 |
send_btn: gr.update(interactive=False)
|
| 312 |
}
|
|
@@ -317,7 +317,7 @@ def policy_chat(message, history):
|
|
| 317 |
yield {
|
| 318 |
chatbot: history,
|
| 319 |
thinking_indicator: gr.update(visible=False),
|
| 320 |
-
reasoning_accordion: gr.update(visible=
|
| 321 |
stop_btn: gr.update(visible=False),
|
| 322 |
send_btn: gr.update(interactive=True)
|
| 323 |
}
|
|
@@ -327,7 +327,7 @@ def policy_chat(message, history):
|
|
| 327 |
yield {
|
| 328 |
chatbot: history,
|
| 329 |
thinking_indicator: gr.update(visible=False),
|
| 330 |
-
reasoning_accordion: gr.update(visible=
|
| 331 |
stop_btn: gr.update(visible=False),
|
| 332 |
send_btn: gr.update(interactive=True)
|
| 333 |
}
|
|
|
|
| 264 |
yield {
|
| 265 |
chatbot: history,
|
| 266 |
thinking_indicator: gr.update(visible=False),
|
| 267 |
+
reasoning_accordion: gr.update(visible=False, value=REASONING_CONTEXT),
|
| 268 |
stop_btn: gr.update(visible=True),
|
| 269 |
send_btn: gr.update(interactive=False)
|
| 270 |
}
|
|
|
|
| 292 |
yield {
|
| 293 |
chatbot: history,
|
| 294 |
thinking_indicator: gr.update(visible=False),
|
| 295 |
+
reasoning_accordion: gr.update(visible=False, value=REASONING_CONTEXT),
|
| 296 |
stop_btn: gr.update(visible=True),
|
| 297 |
send_btn: gr.update(interactive=False)
|
| 298 |
}
|
|
|
|
| 306 |
yield {
|
| 307 |
chatbot: history,
|
| 308 |
thinking_indicator: gr.update(visible=False),
|
| 309 |
+
reasoning_accordion: gr.update(visible=False, value=REASONING_CONTEXT),
|
| 310 |
stop_btn: gr.update(visible=True),
|
| 311 |
send_btn: gr.update(interactive=False)
|
| 312 |
}
|
|
|
|
| 317 |
yield {
|
| 318 |
chatbot: history,
|
| 319 |
thinking_indicator: gr.update(visible=False),
|
| 320 |
+
reasoning_accordion: gr.update(visible=False, value=REASONING_CONTEXT),
|
| 321 |
stop_btn: gr.update(visible=False),
|
| 322 |
send_btn: gr.update(interactive=True)
|
| 323 |
}
|
|
|
|
| 327 |
yield {
|
| 328 |
chatbot: history,
|
| 329 |
thinking_indicator: gr.update(visible=False),
|
| 330 |
+
reasoning_accordion: gr.update(visible=False, value=REASONING_CONTEXT),
|
| 331 |
stop_btn: gr.update(visible=False),
|
| 332 |
send_btn: gr.update(interactive=True)
|
| 333 |
}
|