Spaces:
Running
Running
questions
Browse files
app.py
CHANGED
@@ -57,12 +57,11 @@ def generate_questions(df_string):
|
|
57 |
}
|
58 |
|
59 |
response = client.chat.completions.create(**request_payload)
|
60 |
-
|
61 |
print("=====json_response=====")
|
62 |
-
print(
|
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):
|