binqiangliu commited on
Commit
8dcace6
·
1 Parent(s): a04011c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -4
app.py CHANGED
@@ -56,10 +56,13 @@ def chat():
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
  print("API Call Output:"+initial_response)
61
- return {'response': initial_response}
62
- #return output
 
 
 
 
63
 
64
  if __name__ == '__main__':
65
  #app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 7860)))
@@ -72,4 +75,8 @@ if __name__ == '__main__':
72
  #WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
73
  # * Running on all addresses (0.0.0.0)
74
  # * Running on http://127.0.0.1:7860
75
- # * Running on http://10.19.10.85:7860
 
 
 
 
 
56
  user_query = data['user_question']
57
  print("API Input:"+user_query)
58
  initial_response = llm_chain.run(user_query)
 
59
  print("API Call Output:"+initial_response)
60
+
61
+ #return {'response': initial_response}
62
+ #Working!!!
63
+
64
+ output=jsonify({'response': initial_response})
65
+ return output
66
 
67
  if __name__ == '__main__':
68
  #app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 7860)))
 
75
  #WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
76
  # * Running on all addresses (0.0.0.0)
77
  # * Running on http://127.0.0.1:7860
78
+ # * Running on http://10.19.10.85:7860
79
+ #A Web Server Gateway Interface (WSGI) server runs Python code to create a web application.
80
+ #https://wsgi.readthedocs.io/en/latest/what.html
81
+ #https://www.fullstackpython.com/wsgi-servers.html
82
+ #https://en.wikipedia.org/wiki/Web_Server_Gateway_Interface