Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ import matplotlib.pyplot as plt
|
|
| 5 |
|
| 6 |
# Fetch data from the non-SSL API (example API URL)
|
| 7 |
def fetch_data_from_api():
|
| 8 |
-
api_url = "
|
| 9 |
response = requests.get(api_url)
|
| 10 |
data = response.json() # Assumes the response is in JSON format
|
| 11 |
return data
|
|
|
|
| 5 |
|
| 6 |
# Fetch data from the non-SSL API (example API URL)
|
| 7 |
def fetch_data_from_api():
|
| 8 |
+
api_url = "http://example.com/api" # Replace with your actual non-SSL API URL
|
| 9 |
response = requests.get(api_url)
|
| 10 |
data = response.json() # Assumes the response is in JSON format
|
| 11 |
return data
|