Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
@@ -3,6 +3,8 @@ from preprocessing import run_preprocessing
|
|
3 |
from ai_transcriber import transcribe_all
|
4 |
from reconciliate_and_upload import reconciliate_and_upload
|
5 |
import os
|
|
|
|
|
6 |
def run_main(
|
7 |
source_folder_with_reciepts,
|
8 |
link_to_csv,
|
@@ -13,7 +15,7 @@ transaction_csv_path = 'downloaded_file.csv',
|
|
13 |
data_path = "trial2"
|
14 |
):
|
15 |
os.system("apt update; yes | apt-get install poppler-utils; yes | ls")
|
16 |
-
|
17 |
# breakpoint()
|
18 |
source_folder_with_reciepts = source_folder_with_reciepts.split("?")[0].split("/")[-1]
|
19 |
folder_to_save_processed_reciepts = folder_to_save_processed_reciepts.split("?")[0].split("/")[-1]
|
|
|
3 |
from ai_transcriber import transcribe_all
|
4 |
from reconciliate_and_upload import reconciliate_and_upload
|
5 |
import os
|
6 |
+
import time
|
7 |
+
|
8 |
def run_main(
|
9 |
source_folder_with_reciepts,
|
10 |
link_to_csv,
|
|
|
15 |
data_path = "trial2"
|
16 |
):
|
17 |
os.system("apt update; yes | apt-get install poppler-utils; yes | ls")
|
18 |
+
data_path = time.time().__str__().replace(".","")
|
19 |
# breakpoint()
|
20 |
source_folder_with_reciepts = source_folder_with_reciepts.split("?")[0].split("/")[-1]
|
21 |
folder_to_save_processed_reciepts = folder_to_save_processed_reciepts.split("?")[0].split("/")[-1]
|