Spaces:
Sleeping
Sleeping
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' |