Spaces:
Running
Running
Upload main.py
Browse files
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(
|
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"})
|