sujalrajpoot commited on
Commit
3771237
·
verified ·
1 Parent(s): 7e1ecd0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 Error: {str(e)}"
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"])