i need an app that runs as a web app and asks for two numbers and outputs the sum
To upload files, please first save the app
import streamlit as st
st.title("Number Sum Calculator")
st.write("Enter two numbers to calculate their sum:")
# Create input fields for the two numbers
number1 = st.number_input("Enter the first number:", value=0.0, step=1.0)
number2 = st.number_input("Enter the second number:", value=0.0, step=1.0)
# Calculate and display the sum
sum_result = number1 + number2
st.write(f"The sum of {number1} and {number2} is: **{sum_result}**")
Hi! I can help you with any questions about Streamlit and Python. What would you like to know?