binqiangliu commited on
Commit
99f5f75
·
1 Parent(s): f8b49ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -15,10 +15,10 @@ fastapi_server_url = "https://binqiangliu-wechatarticleloaderfastapi.hf.space/ge
15
 
16
  # 用户输入
17
  url = st.text_input("Enter the URL to chat with:")
18
- print(f"URL Entered")
19
  print()
20
  question = st.text_input("Enter your question:")
21
- print(f"Question Entered")
22
  print()
23
 
24
  # 当用户点击按钮时
@@ -51,6 +51,9 @@ if st.button('Get AI Response'):
51
  end_2 = timeit.default_timer() # Start timer
52
  print(f'获取API调用结果完毕,共耗时: @ {end_2 - start_2}')
53
  print()
 
 
 
54
  st.write("AI Response:", ai_response)
55
  st.write("AI Response:", ai_response_output)
56
  else:
 
15
 
16
  # 用户输入
17
  url = st.text_input("Enter the URL to chat with:")
18
+ print(f"URL Entered: "+url)
19
  print()
20
  question = st.text_input("Enter your question:")
21
+ print(f"Question Entered: "+question)
22
  print()
23
 
24
  # 当用户点击按钮时
 
51
  end_2 = timeit.default_timer() # Start timer
52
  print(f'获取API调用结果完毕,共耗时: @ {end_2 - start_2}')
53
  print()
54
+ print("AI Response:", ai_response)
55
+ print("AI Response:", ai_response_output)
56
+ print()
57
  st.write("AI Response:", ai_response)
58
  st.write("AI Response:", ai_response_output)
59
  else: