mgokg commited on
Commit
82d3b53
·
verified ·
1 Parent(s): a160b6a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.get(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:
 
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: