engralimalik commited on
Commit
0974178
·
verified ·
1 Parent(s): c179ce5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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.inputs.File(label="Upload Expense CSV", type="file")
54
  outputs = [
55
- gr.outputs.Dataframe(label="Categorized Expense Data"),
56
- gr.outputs.Plotly(label="Category-wise Spending (Pie Chart)"),
57
- gr.outputs.Plotly(label="Monthly Spending Trends (Line Chart)"),
58
- gr.outputs.Plotly(label="Budget vs Actual Spending (Bar Chart)"),
59
- gr.outputs.Textbox(label="Savings Tips")
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