Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
krrish-v authored Jun 12, 2022
1 parent 92d9a94 commit ae97967
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion BLOCK/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,13 @@ def other_user_pub_key(api, token):

@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)
pridict_data = get_().pridict(symptoms)
if pridict_data is not None:
return jsonify({'pridicted data': pridict_data})

else: return jsonify({'error': 'passed data in a wwrong way'})


if __name__ == '__main__':
app.run(host= '0.0.0.0', port=5000, debug=False)

0 comments on commit ae97967

Please sign in to comment.