Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ def generate_response(query:str) -> str:
|
|
41 |
response.raise_for_status()
|
42 |
return response.json().get('choices', [{}])[0].get('message', {}).get('content', "API Server is under maintenance. Please Try After Some Time Thank You for using TrueSyncAI Chat API. Have a great day.")
|
43 |
except requests.exceptions.RequestException as e:
|
44 |
-
return f"API
|
45 |
|
46 |
# Chat Endpoint
|
47 |
@app.route("/chat", methods=["POST"])
|
|
|
41 |
response.raise_for_status()
|
42 |
return response.json().get('choices', [{}])[0].get('message', {}).get('content', "API Server is under maintenance. Please Try After Some Time Thank You for using TrueSyncAI Chat API. Have a great day.")
|
43 |
except requests.exceptions.RequestException as e:
|
44 |
+
return f"API Server is under maintenance. Please Try After Some Time Thank You for using TrueSyncAI Chat API. Have a great day."
|
45 |
|
46 |
# Chat Endpoint
|
47 |
@app.route("/chat", methods=["POST"])
|