Spaces:
Running
Running
Update app.py
Browse files
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.
|
| 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)
|