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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -23
app.py CHANGED
@@ -265,34 +265,18 @@ def calculate_equivalent(manual, manual_RH_O, manual_RH_D, requer, docs, it, pro
265
  })
266
 
267
  # Salva o DataFrame em um arquivo Excel
268
- # excel_file = 'Planilha_hist贸rico_IT.xlsx'
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---------------------------------------------------------#
 
265
  })
266
 
267
  # Salva o DataFrame em um arquivo Excel
268
+ excel_file = 'Planilha_hist贸rico_IT.xlsx'
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
 
282
  #---------------------------------------------------------MAPA---------------------------------------------------------#