binqiangliu commited on
Commit
b34f902
·
1 Parent(s): facdb79

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -22,7 +22,9 @@ if st.button('Get AI Response'):
22
 
23
  if response.status_code == 200:
24
  # 显示 AI 的回答
25
- ai_response = response.json().get("AI Response", "No response received.")
 
 
26
  st.write("AI Response:", ai_response)
27
  else:
28
  # 显示错误信息
 
22
 
23
  if response.status_code == 200:
24
  # 显示 AI 的回答
25
+ #ai_response = response.json().get("AI Response", "No response received.")
26
+ ai_response = response.json()
27
+ ai_response_output=ai_response['AI Response']
28
  st.write("AI Response:", ai_response)
29
  else:
30
  # 显示错误信息