Spaces:
Runtime error
Runtime error
first commit
Browse files- main_app.py +16 -0
- requirements.txt +2 -0
main_app.py
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# -*- coding: utf-8 -*-
|
2 |
+
"""
|
3 |
+
Created on Mon Jan 23 19:15:33 2023
|
4 |
+
|
5 |
+
@author: dverma
|
6 |
+
"""
|
7 |
+
|
8 |
+
import streamlit as st
|
9 |
+
import pandas as pd
|
10 |
+
st.title('A Simple Streamlit Web App')
|
11 |
+
name = st.text_input('Enter your name, ''')
|
12 |
+
st.write(f'Hello {name}!')
|
13 |
+
x = st.slider('Select an integer x', 0, 10, 1)
|
14 |
+
y = st.slider('Select an integer y', 0, 10, 1)
|
15 |
+
df = pd.DataFrame({'x': [x], 'y': [y] ,'x + y': [x + y]}, index = ['addition row'])
|
16 |
+
st.write(df)
|
requirements.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
streamlit
|
2 |
+
pandas
|