randydev commited on
Commit
2256f29
1 Parent(s): d681cd0

Upload main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -475,7 +475,7 @@ def no_chatgpt(query: str=None):
475
  try:
476
  url = "http://216.98.10.228:5000"
477
  api_method = f"{url}/gpt?ask={query}"
478
- response = requests.get(url)
479
  return SuccessResponse(status="True", randydev={"message": response.text})
480
  except:
481
  return SuccessResponse(status="False", randydev={"message": "Error response"})
 
475
  try:
476
  url = "http://216.98.10.228:5000"
477
  api_method = f"{url}/gpt?ask={query}"
478
+ response = requests.get(api_method)
479
  return SuccessResponse(status="True", randydev={"message": response.text})
480
  except:
481
  return SuccessResponse(status="False", randydev={"message": "Error response"})