Ayesha352 commited on
Commit
c085fc8
·
verified ·
1 Parent(s): d54a8d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -112,12 +112,10 @@ def extract_numeric_values(pdf_file, schedule1_file=None, client_name="Unknown C
112
 
113
  doc.close()
114
 
115
- output_dir = "Files"
116
- os.makedirs(output_dir, exist_ok=True)
117
- csv_path = os.path.join(output_dir, "Clients_Output_Data_Form_1040.csv")
118
-
119
- save_to_csv_flat(all_extracated_values, schedule1_values, client_name=client_name, csv_path=csv_path)
120
- return "\n".join(output), csv_path # Return the full path
121
 
122
  except Exception as e:
123
  return f"Error occurred:\n{str(e)}", None
 
112
 
113
  doc.close()
114
 
115
+ output_dir = "Clients_Outpoutput_dirut_Data_Form_1040.csv"
116
+
117
+ save_to_csv_flat(all_extracated_values, schedule1_values, client_name=client_name, csv_path=output_dir)
118
+ return "\n".join(output), output_dir # Return the full path
 
 
119
 
120
  except Exception as e:
121
  return f"Error occurred:\n{str(e)}", None