Update app.py
Browse files
app.py
CHANGED
@@ -50,13 +50,13 @@ def process_expenses(file):
|
|
50 |
return df.head(), fig1, fig2, fig3, savings_tips
|
51 |
|
52 |
# Gradio interface definition
|
53 |
-
inputs = gr.
|
54 |
outputs = [
|
55 |
-
gr.
|
56 |
-
gr.
|
57 |
-
gr.
|
58 |
-
gr.
|
59 |
-
gr.
|
60 |
]
|
61 |
|
62 |
# Launch Gradio interface
|
|
|
50 |
return df.head(), fig1, fig2, fig3, savings_tips
|
51 |
|
52 |
# Gradio interface definition
|
53 |
+
inputs = gr.File(label="Upload Expense CSV")
|
54 |
outputs = [
|
55 |
+
gr.Dataframe(label="Categorized Expense Data"),
|
56 |
+
gr.Plotly(label="Category-wise Spending (Pie Chart)"),
|
57 |
+
gr.Plotly(label="Monthly Spending Trends (Line Chart)"),
|
58 |
+
gr.Plotly(label="Budget vs Actual Spending (Bar Chart)"),
|
59 |
+
gr.Textbox(label="Savings Tips")
|
60 |
]
|
61 |
|
62 |
# Launch Gradio interface
|