DavidSB commited on
Commit
28b2a78
verified
1 Parent(s): f5e8eb7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -4
app.py CHANGED
@@ -269,13 +269,30 @@ def calculate_equivalent(manual, manual_RH_O, manual_RH_D, requer, docs, it, pro
269
  # results_df.to_excel(excel_file, index=False)
270
 
271
  # Verifica se o arquivo j谩 existe
272
- if os.path.exists('Planilha_hist贸rico_IT.xlsx'):
273
- existing_df = pd.read_excel('Planilha_hist贸rico_IT.xlsx')
 
 
 
 
 
 
 
 
 
 
274
  updated_df = pd.concat([existing_df, results_df], ignore_index=True)
275
  if incluir == "Sim":
276
- pdated_df.to_excel('Planilha_hist贸rico_IT.xlsx', index=False)
277
  else:
278
- results_df.to_excel('Planilha_hist贸rico_IT.xlsx', index=False)
 
 
 
 
 
 
 
279
 
280
 
281
  #---------------------------------------------------------MAPA---------------------------------------------------------#
@@ -298,6 +315,8 @@ def calculate_equivalent(manual, manual_RH_O, manual_RH_D, requer, docs, it, pro
298
  # Return this message in the same format as your function's successful output
299
  return None, None, None, custom_error_message, None, None, None
300
 
 
 
301
  #------------------------------------------------------INTERFACE-------------------------------------------------------#
302
 
303
  # Obtenha a lista 煤nica de logradouros do DataFrame
 
269
  # results_df.to_excel(excel_file, index=False)
270
 
271
  # Verifica se o arquivo j谩 existe
272
+ #if os.path.exists('Planilha_hist贸rico_IT.xlsx'):
273
+ #existing_df = pd.read_excel('Planilha_hist贸rico_IT.xlsx')
274
+ #updated_df = pd.concat([existing_df, results_df], ignore_index=True)
275
+ #if incluir == "Sim":
276
+ #pdated_df.to_excel('Planilha_hist贸rico_IT.xlsx', index=False)
277
+ #else:
278
+ #results_df.to_excel('Planilha_hist贸rico_IT.xlsx', index=False)
279
+
280
+
281
+ # Verifica se o arquivo j谩 existe
282
+ if os.path.exists('https://huggingface.co/spaces/DavidSB/Eqv/tree/main/Planilha_hist贸rico_IT.xlsx'):
283
+ existing_df = pd.read_excel('https://huggingface.co/spaces/DavidSB/Eqv/tree/main/Planilha_hist贸rico_IT.xlsx')
284
  updated_df = pd.concat([existing_df, results_df], ignore_index=True)
285
  if incluir == "Sim":
286
+ pdated_df.to_excel('https://huggingface.co/spaces/DavidSB/Eqv/tree/main/Planilha_hist贸rico_IT.xlsx', index=False)
287
  else:
288
+ results_df.to_excel('https://huggingface.co/spaces/DavidSB/Eqv/tree/main/Planilha_hist贸rico_IT.xlsx', index=False)
289
+
290
+
291
+
292
+
293
+
294
+
295
+
296
 
297
 
298
  #---------------------------------------------------------MAPA---------------------------------------------------------#
 
315
  # Return this message in the same format as your function's successful output
316
  return None, None, None, custom_error_message, None, None, None
317
 
318
+
319
+
320
  #------------------------------------------------------INTERFACE-------------------------------------------------------#
321
 
322
  # Obtenha a lista 煤nica de logradouros do DataFrame