fixed minor bugs
Browse files- ChitChat/resources/routes.py +1 -1
- app.py +4 -4
- instance/site.db +0 -0
ChitChat/resources/routes.py
CHANGED
@@ -50,7 +50,7 @@ class ChatBot(Resource):
|
|
50 |
|
51 |
reply = conversation(user, userInput)
|
52 |
return {'reply' : reply}
|
53 |
-
api.add_resource(ChatBot, '/chat/<
|
54 |
|
55 |
|
56 |
|
|
|
50 |
|
51 |
reply = conversation(user, userInput)
|
52 |
return {'reply' : reply}
|
53 |
+
api.add_resource(ChatBot, '/chat/<string:user_id>')
|
54 |
|
55 |
|
56 |
|
app.py
CHANGED
@@ -3,8 +3,8 @@ from ChitChat import create_app
|
|
3 |
|
4 |
app = create_app()
|
5 |
|
6 |
-
# if __name__ == '__main__':
|
7 |
-
# app.run(debug = True, port = 5000)
|
8 |
-
|
9 |
if __name__ == '__main__':
|
10 |
-
app.run(debug =
|
|
|
|
|
|
|
|
3 |
|
4 |
app = create_app()
|
5 |
|
|
|
|
|
|
|
6 |
if __name__ == '__main__':
|
7 |
+
app.run(debug = True, port = 5000)
|
8 |
+
|
9 |
+
# if __name__ == '__main__':
|
10 |
+
# app.run(debug = False, host = "0.0.0.0", port = 7860)
|
instance/site.db
CHANGED
Binary files a/instance/site.db and b/instance/site.db differ
|
|