kaburia commited on
Commit
4c31cac
·
1 Parent(s): 2a28af6

thinking mode

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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=True, value=REASONING_CONTEXT),
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=True, value=REASONING_CONTEXT),
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=True, value=REASONING_CONTEXT),
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=True, value=REASONING_CONTEXT),
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=True, value=REASONING_CONTEXT),
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
  }