| import gradio as gr |
| import os |
|
|
| |
| PROCESSED_FILE_PATH = "output.xlsx" |
|
|
| |
| def process_file(filepath): |
| if not filepath: |
| return "β Please upload a valid file." |
| |
| |
| return PROCESSED_FILE_PATH |
|
|
| |
| iface = gr.Interface( |
| fn=process_file, |
| inputs=gr.File(type="filepath", label="π€ Upload your Excel file"), |
| outputs=gr.File(label="π₯ Download Processed File"), |
| title="DIGITAG β Intelligent Price, Seamless Label", |
| description="DIGITAG optimizes pricing using AI, factoring in profit margins, real product cost, expiry date, market trends, and customer behavior. Stay competitive with real-time price adjustments that boost revenue, reduce waste, and maximize profitability. Smarter pricing, better profits! π" |
| ) |
|
|
| |
| if __name__ == "__main__": |
| iface.launch() |