-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f4733bb
commit f22d299
Showing
4 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
flask | ||
Flask-SocketIO | ||
pandas | ||
openai | ||
openai | ||
streamlit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |