Spaces:
Runtime error
Runtime error
Update preprocessing.py
Browse files- preprocessing.py +0 -2
preprocessing.py
CHANGED
@@ -44,13 +44,11 @@ def run_preprocessing(data_path, source_folder_with_reciepts,link_to_csv ):
|
|
44 |
source_folder_with_reciepts (_type_): folder_if where the reciepts are saved
|
45 |
link_to_csv (_type_): link gdrive to csv
|
46 |
"""
|
47 |
-
breakpoint()
|
48 |
|
49 |
os.makedirs(data_path, exist_ok=True)
|
50 |
full_link_to_csv = f'https://drive.google.com/uc?id={link_to_csv}'
|
51 |
print(full_link_to_csv)
|
52 |
transaction_csv_path = f'{data_path}/downloaded_file.csv'
|
53 |
-
breakpoint()
|
54 |
gdown.download(full_link_to_csv, transaction_csv_path, quiet=False)
|
55 |
SCOPES = ['https://www.googleapis.com/auth/drive']
|
56 |
SERVICE_ACCOUNT_FILE = 'secret_google_service_account.json'
|
|
|
44 |
source_folder_with_reciepts (_type_): folder_if where the reciepts are saved
|
45 |
link_to_csv (_type_): link gdrive to csv
|
46 |
"""
|
|
|
47 |
|
48 |
os.makedirs(data_path, exist_ok=True)
|
49 |
full_link_to_csv = f'https://drive.google.com/uc?id={link_to_csv}'
|
50 |
print(full_link_to_csv)
|
51 |
transaction_csv_path = f'{data_path}/downloaded_file.csv'
|
|
|
52 |
gdown.download(full_link_to_csv, transaction_csv_path, quiet=False)
|
53 |
SCOPES = ['https://www.googleapis.com/auth/drive']
|
54 |
SERVICE_ACCOUNT_FILE = 'secret_google_service_account.json'
|