Spaces:
Build error
Build error
Commit
·
5e092ec
1
Parent(s):
b34f902
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,7 +24,7 @@ if st.button('Get AI Response'):
|
|
| 24 |
# 显示 AI 的回答
|
| 25 |
#ai_response = response.json().get("AI Response", "No response received.")
|
| 26 |
ai_response = response.json()
|
| 27 |
-
ai_response_output=ai_response['
|
| 28 |
st.write("AI Response:", ai_response)
|
| 29 |
else:
|
| 30 |
# 显示错误信息
|
|
|
|
| 24 |
# 显示 AI 的回答
|
| 25 |
#ai_response = response.json().get("AI Response", "No response received.")
|
| 26 |
ai_response = response.json()
|
| 27 |
+
ai_response_output=ai_response['AIResponse']
|
| 28 |
st.write("AI Response:", ai_response)
|
| 29 |
else:
|
| 30 |
# 显示错误信息
|