Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ import requests
|
|
| 13 |
app = FastAPI()
|
| 14 |
|
| 15 |
# β
Correct Hugging Face Dataset URL
|
| 16 |
-
DATASET_URL = "https://huggingface.co/datasets/SailajaS/CDART/resolve/
|
| 17 |
|
| 18 |
# File path for saving dataset
|
| 19 |
DATASET_PATH = "dataset.csv"
|
|
@@ -23,7 +23,7 @@ def download_dataset():
|
|
| 23 |
print("π₯ Downloading dataset from Hugging Face...")
|
| 24 |
|
| 25 |
try:
|
| 26 |
-
response = requests.get(DATASET_URL, timeout=
|
| 27 |
|
| 28 |
if response.status_code == 200:
|
| 29 |
with open(DATASET_PATH, "wb") as file:
|
|
|
|
| 13 |
app = FastAPI()
|
| 14 |
|
| 15 |
# β
Correct Hugging Face Dataset URL
|
| 16 |
+
DATASET_URL = "https://huggingface.co/datasets/SailajaS/CDART/resolve/9bfa82e31390ff6523f6b93777f745a78ecb2cd6/Sample_Case_Records__Real_Unique.csv?download=true"
|
| 17 |
|
| 18 |
# File path for saving dataset
|
| 19 |
DATASET_PATH = "dataset.csv"
|
|
|
|
| 23 |
print("π₯ Downloading dataset from Hugging Face...")
|
| 24 |
|
| 25 |
try:
|
| 26 |
+
response = requests.get(DATASET_URL, timeout=15)
|
| 27 |
|
| 28 |
if response.status_code == 200:
|
| 29 |
with open(DATASET_PATH, "wb") as file:
|