binqiangliu commited on
Commit
0bd4a2f
·
1 Parent(s): e58ef68

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -54,6 +54,7 @@ def chat():
54
  #不支持async
55
  data = request.get_json()
56
  user_query = data['user_question']
 
57
  initial_response = llm_chain.run(user_query)
58
  #output=jsonify({'response': initial_response})
59
  return {'response': initial_response}
@@ -63,4 +64,11 @@ if __name__ == '__main__':
63
  #app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 7860)))
64
  #app.run(host='0.0.0.0', port=7860)
65
  app.run(host='0.0.0.0', port=7860)
66
- #Working!!!
 
 
 
 
 
 
 
 
54
  #不支持async
55
  data = request.get_json()
56
  user_query = data['user_question']
57
+ print("API Input:"+user_query)
58
  initial_response = llm_chain.run(user_query)
59
  #output=jsonify({'response': initial_response})
60
  return {'response': initial_response}
 
64
  #app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 7860)))
65
  #app.run(host='0.0.0.0', port=7860)
66
  app.run(host='0.0.0.0', port=7860)
67
+ #Working!!!
68
+
69
+ # * Serving Flask app 'app'
70
+ # * Debug mode: off
71
+ #WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
72
+ # * Running on all addresses (0.0.0.0)
73
+ # * Running on http://127.0.0.1:7860
74
+ # * Running on http://10.19.10.85:7860