forked from parthbansal05/Subtraction-Streamlit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
25 lines (22 loc) · 642 Bytes
/
app.py
File metadata and controls
25 lines (22 loc) · 642 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import numpy as np
import pandas as pd
import streamlit as st
def welcome():
return "Welcome All"
def main():
st.title("Addition of 2 numbers")
html_temp = """
<div style="background-color:tomato;padding:10px">
<h2 style="color:white;text-align:center;">Addition of 2 numbers using Streamlit</h2>
</div>
"""
st.markdown(html_temp,unsafe_allow_html=True)
num1 = st.number_input("Number 1")
num2 = st.number_input("Number 2")
result = num1 + num2
st.success('The output is {}'.format(result))
if st.button("Made By"):
st.text("Bishal Banerjee")
st.text("21f2000514")
if __name__=='__main__':
main()