Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ HF_TOKEN = os.getenv("HF_TOKEN")
|
|
| 7 |
|
| 8 |
def load_dataset():
|
| 9 |
url = os.getenv("URL")
|
| 10 |
-
|
| 11 |
if r.status_code != 200:
|
| 12 |
raise HTTPException(status_code=500, detail="Dataset fetch failed")
|
| 13 |
return r.json()
|
|
|
|
| 7 |
|
| 8 |
def load_dataset():
|
| 9 |
url = os.getenv("URL")
|
| 10 |
+
r = requests.get(url)
|
| 11 |
if r.status_code != 200:
|
| 12 |
raise HTTPException(status_code=500, detail="Dataset fetch failed")
|
| 13 |
return r.json()
|