SailajaS commited on
Commit
4da6b1d
Β·
verified Β·
1 Parent(s): 7d07c47

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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/main/train.csv"
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=10)
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: