freegpu commited on
Commit
ee09dc6
·
verified ·
1 Parent(s): badf071

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -333,7 +333,7 @@ def run_prediction_for_gradio(limit, tsym, crypto_name, timeframe):
333
  try:
334
  # 3. Perform the POST request
335
  # Using 'json=' automatically sets Content-Type to application/json
336
- response = requests.post(url, json=data_to_send)
337
 
338
  # 4. Handle the response
339
  response.raise_for_status() # Check for HTTP errors (4xx or 5xx)
 
333
  try:
334
  # 3. Perform the POST request
335
  # Using 'json=' automatically sets Content-Type to application/json
336
+ response = requests.get(url, json=data_to_send)
337
 
338
  # 4. Handle the response
339
  response.raise_for_status() # Check for HTTP errors (4xx or 5xx)