wanglettes commited on
Commit
9f6d669
·
1 Parent(s): a76ac1c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -72,12 +72,9 @@ def chat(
72
  if "finish_reason" in choice and choice["finish_reason"] == "stop":
73
  break
74
  formatted_history = create_formatted_history(history_messages)
 
 
75
  yield formatted_history, history_messages
76
-
77
-
78
- formatted_history = create_formatted_history(history_messages)
79
- qa_data = formatted_history[-1]
80
- save_qa_data(qa_data, qa_data_file_path)
81
  chatbot = gr.Chatbot(label="Chat").style(color_map=("yellow", "purple"))
82
  iface = gr.Interface(
83
  fn=chat,
 
72
  if "finish_reason" in choice and choice["finish_reason"] == "stop":
73
  break
74
  formatted_history = create_formatted_history(history_messages)
75
+ qa_data = formatted_history[-1]
76
+ save_qa_data(qa_data, qa_data_file_path)
77
  yield formatted_history, history_messages
 
 
 
 
 
78
  chatbot = gr.Chatbot(label="Chat").style(color_map=("yellow", "purple"))
79
  iface = gr.Interface(
80
  fn=chat,