zenafey commited on
Commit
9cc946b
·
1 Parent(s): 4c289aa

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -35,7 +35,7 @@ def send():
35
  message = request.json.get('message', 'hello!')
36
 
37
  client = Client("https://ysharma-explore-llamav2-with-tgi.hf.space/")
38
- result = client.predict()
39
  return {'response': result}
40
 
41
  @app.route("/chat/completions", methods=['POST'])
 
35
  message = request.json.get('message', 'hello!')
36
 
37
  client = Client("https://ysharma-explore-llamav2-with-tgi.hf.space/")
38
+ result = client.predict(message, api_name="/chat")
39
  return {'response': result}
40
 
41
  @app.route("/chat/completions", methods=['POST'])