Cachoups commited on
Commit
3d407d8
·
verified ·
1 Parent(s): 22db5e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -88,7 +88,7 @@ def process_and_compare(file1, sheet1, file2, sheet2):
88
  year = int(re.search(r'(\d{4})', file_path).group(1))
89
 
90
  # Load the Excel file
91
- df = pd.read_excel(os.path.join("data", file_path), sheet_name=sheet_name, index_col=0)
92
 
93
  # Define expected columns based on extracted year
94
  historical_col = f'Historical {year - 1}'
@@ -225,8 +225,8 @@ with gr.Blocks() as demo:
225
 
226
  with gr.Row():
227
  with gr.Column():
228
- file1 = gr.Dropdown(choices=get_excel_files(DATA_FOLDER), label="Select Excel File 1")
229
- file2 = gr.Dropdown(choices=get_excel_files(DATA_FOLDER), label="Select Excel File 2")
230
  sheet = gr.Dropdown(choices=[], label="Select Sheet for File 1 and 2")
231
 
232
  with gr.Column():
 
88
  year = int(re.search(r'(\d{4})', file_path).group(1))
89
 
90
  # Load the Excel file
91
+ df = pd.read_excel(os.path.join(PDF_FOLDER, file_path), sheet_name=sheet_name, index_col=0)
92
 
93
  # Define expected columns based on extracted year
94
  historical_col = f'Historical {year - 1}'
 
225
 
226
  with gr.Row():
227
  with gr.Column():
228
+ file1 = gr.Dropdown(choices=get_excel_files(PDF_FOLDER), label="Select Excel File 1")
229
+ file2 = gr.Dropdown(choices=get_excel_files(PDF_FOLDER), label="Select Excel File 2")
230
  sheet = gr.Dropdown(choices=[], label="Select Sheet for File 1 and 2")
231
 
232
  with gr.Column():