tab1_to_tab2 / tab1.py
fschwartzer's picture
Update tab1.py
6d72498
raw
history blame contribute delete
582 Bytes
import gradio as gr
import pandas as pd
# Function to load and manipulate Excel file
def execute(file):
try:
# Load the Excel file
data = pd.read_excel(file.name)
# Save the modified data to the output folder
output_file = 'dados/output.xlsx'
data.to_excel(output_file, index=False)
return f"File saved at {output_file}"
except Exception as e:
return str(e)
def load_inputs():
gr.inputs.File(label="Upload Excel File")
output_label = "Arquivo salvo"
title = 'Aba 1'
description = 'Carregar e salvar arquivo'