Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -74,7 +74,7 @@ google_api_key = os.getenv('google_search')
|
|
74 |
def query(payload):
|
75 |
API_URL = f"https://specialist-it.de/bots.php?json={payload}"
|
76 |
try:
|
77 |
-
response = requests.
|
78 |
response.raise_for_status() # Raises HTTPError for bad responses
|
79 |
return response.text # Return the content of the response
|
80 |
except requests.exceptions.RequestException as e:
|
|
|
74 |
def query(payload):
|
75 |
API_URL = f"https://specialist-it.de/bots.php?json={payload}"
|
76 |
try:
|
77 |
+
response = requests.post(API_URL)
|
78 |
response.raise_for_status() # Raises HTTPError for bad responses
|
79 |
return response.text # Return the content of the response
|
80 |
except requests.exceptions.RequestException as e:
|