youngtsai commited on
Commit
9d0ff0e
1 Parent(s): 45b848f
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -57,12 +57,11 @@ def generate_questions(df_string):
57
  }
58
 
59
  response = client.chat.completions.create(**request_payload)
60
- json_response = json.loads(response.choices[0].message.content)["questions"]
61
  print("=====json_response=====")
62
- print(json_response)
63
-
64
- # 这里需要编写代码来实现此功能
65
- questions = json_response # 示例问题列表
66
  return questions
67
 
68
  def send_question(question, df_string_output, chat_history):
 
57
  }
58
 
59
  response = client.chat.completions.create(**request_payload)
60
+ questions = json.loads(response.choices[0].message.content)["questions"]
61
  print("=====json_response=====")
62
+ print(questions)
63
+ print("=====json_response=====")
64
+
 
65
  return questions
66
 
67
  def send_question(question, df_string_output, chat_history):