chansung commited on
Commit
af7cd47
1 Parent(s): 1df330b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -92,6 +92,8 @@ async def rollback_last(
92
  ):
93
  ppm.append_pong(result)
94
  yield "", prompt, ppm.build_uis(), str(res)
 
 
95
 
96
  def reset_chat(idx, ld, state):
97
  res = [state["ppmanager_type"].from_json(json.dumps(ppm_str)) for ppm_str in ld]
@@ -328,11 +330,7 @@ with gr.Blocks(css=MODEL_SELECTION_CSS, theme='gradio/soft') as demo:
328
  rollback_last,
329
  [idx, local_data, chat_state,
330
  global_context, res_temp, res_topk, res_rpen, res_mnts, res_sample, ctx_num_lconv],
331
- [context_inspector, chatbot, local_data]
332
- ).then(
333
- lambda: gr.update(interactive=True),
334
- None,
335
- regenerate
336
  ).then(
337
  None, local_data, None,
338
  _js="(v)=>{ setStorage('local_data',v) }"
 
92
  ):
93
  ppm.append_pong(result)
94
  yield "", prompt, ppm.build_uis(), str(res)
95
+
96
+ yield "", prompt, ppm.build_uis(), str(res), gr.update(interactive=True)
97
 
98
  def reset_chat(idx, ld, state):
99
  res = [state["ppmanager_type"].from_json(json.dumps(ppm_str)) for ppm_str in ld]
 
330
  rollback_last,
331
  [idx, local_data, chat_state,
332
  global_context, res_temp, res_topk, res_rpen, res_mnts, res_sample, ctx_num_lconv],
333
+ [context_inspector, chatbot, local_data, regenerate]
 
 
 
 
334
  ).then(
335
  None, local_data, None,
336
  _js="(v)=>{ setStorage('local_data',v) }"