Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,14 +10,23 @@ import gdown
|
|
10 |
import os
|
11 |
import pandas as pd
|
12 |
|
13 |
-
# Download the file
|
14 |
-
file_id = '1P3Nz6f3KG0m0kO_2pEfnVIhgP8Bvkl4v'
|
15 |
-
url = f'https://drive.google.com/uc?id={file_id}'
|
16 |
-
excel_file_path = os.path.join(os.path.expanduser("~"), 'medical_data.csv')
|
17 |
|
18 |
-
gdown.download(url, excel_file_path, quiet=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
|
20 |
# Read the CSV file into a DataFrame using 'latin1' encoding
|
|
|
|
|
|
|
21 |
try:
|
22 |
medical_df = pd.read_csv(excel_file_path, encoding='utf-8')
|
23 |
except UnicodeDecodeError:
|
|
|
10 |
import os
|
11 |
import pandas as pd
|
12 |
|
13 |
+
# # Download the file
|
14 |
+
# file_id = '1P3Nz6f3KG0m0kO_2pEfnVIhgP8Bvkl4v'
|
15 |
+
# url = f'https://drive.google.com/uc?id={file_id}'
|
16 |
+
# excel_file_path = os.path.join(os.path.expanduser("~"), 'medical_data.csv')
|
17 |
|
18 |
+
# gdown.download(url, excel_file_path, quiet=False)
|
19 |
+
|
20 |
+
# # Read the CSV file into a DataFrame using 'latin1' encoding
|
21 |
+
# try:
|
22 |
+
# medical_df = pd.read_csv(excel_file_path, encoding='utf-8')
|
23 |
+
# except UnicodeDecodeError:
|
24 |
+
# medical_df = pd.read_csv(excel_file_path, encoding='latin1')
|
25 |
|
26 |
# Read the CSV file into a DataFrame using 'latin1' encoding
|
27 |
+
|
28 |
+
excel_file_path = 'medical_data.csv'
|
29 |
+
|
30 |
try:
|
31 |
medical_df = pd.read_csv(excel_file_path, encoding='utf-8')
|
32 |
except UnicodeDecodeError:
|