Skip to content

Commit

Permalink
working streamlit app
Browse files Browse the repository at this point in the history
  • Loading branch information
jweissenberger committed Feb 10, 2021
1 parent f4733bb commit f22d299
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 1 deletion.
File renamed without changes.
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
flask
Flask-SocketIO
pandas
openai
openai
streamlit
33 changes: 33 additions & 0 deletions streamlit_app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import streamlit as st
import pandas as pd
import time


df = pd.DataFrame(
[
{'building': 'Empire State', 'location': "NYC", 'height':1000},
{'building': 'B', 'location': "LA", 'height':600},
{'building': 'c', 'location': "Paris", 'height':900},
{'building': 'C', 'location': "SF", 'height':800},
{'building': 'P', 'location': "Dallas", 'height':500},
]
)



st.title('IZE')
st.subheader('Use natural language to visualize and analyze your data')

st.dataframe(df.head())

example = 'Ex: How many rows are there?'
user_input = st.text_input("Input your Query here", example)

if user_input and user_input != example:
with st.spinner("Loading..."):
time.sleep(2)

if user_input:
st.text(user_input)


11 changes: 11 additions & 0 deletions streamlit_note.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Streamlit is literally perfect and a build your own web app that will make this infinitely easier

File uploader: https://docs.streamlit.io/en/stable/api.html?highlight=file#streamlit.file_uploader

spinner: https://docs.streamlit.io/en/stable/api.html#streamlit.spinner

Deploy with authentication: https://discuss.streamlit.io/t/deployment-on-aws-with-authentication/4073

Deployment wiki: https://discuss.streamlit.io/t/streamlit-deployment-guide-wiki/5099

Session state: https://gist.github.com/tvst/036da038ab3e999a64497f42de966a92

0 comments on commit f22d299

Please sign in to comment.