Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
krrish-v committed Jun 12, 2022
1 parent 3b216c5 commit 09acd99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BLOCK/app.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

from flask import Flask, request, render_template, url_for, redirect, jsonify
from flask_socketio import SocketIO, join_room
from databse import get_in_data, user_api, get_key, create_api
import block as blk
import databse
Expand All @@ -23,7 +22,6 @@
'''

app = Flask(__name__)
sock = SocketIO(app)

@app.route('/register/phone_no=<phone>,password=<password>,country=<country>,state=<state>,zipcode=<zipcode>')
def register(phone, password, country, state, zipcode):
Expand Down Expand Up @@ -62,6 +60,8 @@ def other_user_pub_key(api, token):
else:
return jsonify()


#chatbot
@app.route('/chat/symptoms=<symptoms_list>') #symptioms should be like 0,1,0,0,0,1,0........
def sym_deis(symptoms):
return get_().pridict(symptoms)

0 comments on commit 09acd99

Please sign in to comment.