Muhammad Haris commited on
Commit
d9adf30
·
verified ·
1 Parent(s): d5bf01a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -12,8 +12,11 @@ import os
12
  # file_id = '1P3Nz6f3KG0m0kO_2pEfnVIhgP8Bvkl4v'
13
  # url = f'https://drive.google.com/uc?id={file_id}'
14
  # excel_file_path = os.path.join(os.path.expanduser("~"), 'medical_data.csv')
15
- url='https://huggingface.co/spaces/HEHEBOIBOT/DiBotIE/raw/main/medical_data.csv'
16
- excel_file_path=pd.read_csv(url)
 
 
 
17
 
18
  # Read the CSV file
19
  try:
 
12
  # file_id = '1P3Nz6f3KG0m0kO_2pEfnVIhgP8Bvkl4v'
13
  # url = f'https://drive.google.com/uc?id={file_id}'
14
  # excel_file_path = os.path.join(os.path.expanduser("~"), 'medical_data.csv')
15
+ # Download the file from Hugging Face Spaces
16
+ url = 'https://huggingface.co/spaces/HEHEBOIBOT/DiBotIE/raw/main/medical_data.csv'
17
+ excel_file_path = os.path.join(os.path.expanduser("~"), 'medical_data.csv')
18
+
19
+ gdown.download(url, excel_file_path, quiet=False)
20
 
21
  # Read the CSV file
22
  try: