artificialguybr commited on
Commit
d3bd39a
·
verified ·
1 Parent(s): 9d53066

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -72,9 +72,9 @@ with gr.Blocks() as demo:
72
  chat_history_state = gr.State([])
73
 
74
  def update_chatbot(message, chat_history):
75
- _, chat_history, _ = user(message, chat_history)
76
- chat_history, _, _ = chat(chat_history, system_msg.value, max_tokens.value, temperature.value, top_p.value, 40, 1.1)
77
- return chat_history, chat_history, ""
78
 
79
  submit.click(
80
  fn=update_chatbot,
@@ -88,4 +88,4 @@ with gr.Blocks() as demo:
88
  outputs=[chat_history_state, message]
89
  )
90
 
91
- demo.launch()
 
72
  chat_history_state = gr.State([])
73
 
74
  def update_chatbot(message, chat_history):
75
+ _, chat_history, _ = user(message, chat_history)
76
+ chat_history, _, _ = chat(chat_history, system_msg.value, max_tokens.value, temperature.value, top_p.value, 40, 1.1)
77
+ return chat_history, chat_history, ""
78
 
79
  submit.click(
80
  fn=update_chatbot,
 
88
  outputs=[chat_history_state, message]
89
  )
90
 
91
+ demo.launch()