Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
@@ -36,7 +36,8 @@ def send():
|
|
36 |
|
37 |
client = Client("https://ysharma-explore-llamav2-with-tgi.hf.space/")
|
38 |
result = client.predict(message, api_name="/chat")
|
39 |
-
|
|
|
40 |
|
41 |
@app.route("/chat/completions", methods=['POST'])
|
42 |
def chat_completions():
|
|
|
36 |
|
37 |
client = Client("https://ysharma-explore-llamav2-with-tgi.hf.space/")
|
38 |
result = client.predict(message, api_name="/chat")
|
39 |
+
print('pon')
|
40 |
+
return app.response_class({'response': result})
|
41 |
|
42 |
@app.route("/chat/completions", methods=['POST'])
|
43 |
def chat_completions():
|