Muhammad Haris
commited on
Update app.py
Browse files
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 |
-
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
| 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:
|