Update app.py
Browse files
app.py
CHANGED
|
@@ -11,13 +11,13 @@ HUGGINGFACE_API_KEY = os.getenv("HUGGINGFACE_API_KEY")
|
|
| 11 |
st.title("Smart Budget Planner")
|
| 12 |
|
| 13 |
# Input for monthly income
|
| 14 |
-
income = st.number_input("Enter your monthly income:",
|
| 15 |
|
| 16 |
st.header("Add Your Expenses")
|
| 17 |
# Create a form to add expenses
|
| 18 |
with st.form(key='expense_form'):
|
| 19 |
expense_name = st.text_input("Expense Name")
|
| 20 |
-
expense_amount = st.number_input("Expense Amount",
|
| 21 |
add_expense = st.form_submit_button("Add Expense")
|
| 22 |
|
| 23 |
# Initialize expenses in session_state if not present
|
|
|
|
| 11 |
st.title("Smart Budget Planner")
|
| 12 |
|
| 13 |
# Input for monthly income
|
| 14 |
+
income = st.number_input("Enter your monthly income:", min_value=0.0, step=0.01)
|
| 15 |
|
| 16 |
st.header("Add Your Expenses")
|
| 17 |
# Create a form to add expenses
|
| 18 |
with st.form(key='expense_form'):
|
| 19 |
expense_name = st.text_input("Expense Name")
|
| 20 |
+
expense_amount = st.number_input("Expense Amount", min_value=0.0, step=0.01)
|
| 21 |
add_expense = st.form_submit_button("Add Expense")
|
| 22 |
|
| 23 |
# Initialize expenses in session_state if not present
|