-
Notifications
You must be signed in to change notification settings - Fork 501
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update to nightly * Add st.dialog example app code
- Loading branch information
1 parent
4f1c7ce
commit 8df1cbc
Showing
13 changed files
with
32 additions
and
12 deletions.
There are no files selected for viewing
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,2 +1,2 @@ | ||
streamlit==1.33.0 | ||
streamlit-nightly | ||
webvtt-py |
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,20 @@ | ||
import streamlit as st | ||
|
||
|
||
@st.experimental_dialog("Cast your vote") | ||
def vote(item): | ||
st.write(f"Why is {item} your favorite?") | ||
reason = st.text_input("Because...") | ||
if st.button("Submit"): | ||
st.session_state.vote = {"item": item, "reason": reason} | ||
st.rerun() | ||
|
||
|
||
if "vote" not in st.session_state: | ||
st.write("Vote for your favorite") | ||
if st.button("A"): | ||
vote("A") | ||
if st.button("B"): | ||
vote("B") | ||
else: | ||
f"You voted for {st.session_state.vote['item']} because {st.session_state.vote['reason']}" |
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 +1 @@ | ||
streamlit==1.33.0 | ||
streamlit-nightly |
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 |
---|---|---|
|
@@ -8,4 +8,4 @@ numpy==1.23.5 | |
scipy | ||
altair==4.2.0 | ||
pydeck==0.8.0 | ||
streamlit==1.33.0 | ||
streamlit-nightly |
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 |
---|---|---|
|
@@ -4,4 +4,4 @@ scipy | |
altair==4.2.0 | ||
pydeck==0.8.0 | ||
opencv-python-headless==4.6.0.66 | ||
streamlit==1.33.0 | ||
streamlit-nightly |
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 |
---|---|---|
|
@@ -10,4 +10,4 @@ altair==4.2.0 | |
pydeck==0.8.0 | ||
Faker==19.1.0 | ||
openai==1.3.0 | ||
streamlit==1.33.0 | ||
streamlit-nightly |
2 changes: 1 addition & 1 deletion
2
...amples-source/st-experimental-connection/1.22/st-experimental-connection/requirements.txt
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,4 @@ | ||
streamlit==1.33.0 | ||
streamlit-nightly | ||
toml | ||
sqlalchemy==1.4 | ||
duckdb | ||
|
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,4 @@ | ||
streamlit==1.33.0 | ||
streamlit-nightly | ||
vega_datasets | ||
altair==4.2.0 | ||
plotly==5.13.0 |
2 changes: 1 addition & 1 deletion
2
python/api-examples-source/tutorials/custom-navigation/requirements.txt
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 +1 @@ | ||
streamlit==1.33.0 | ||
streamlit-nightly |
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 +1 @@ | ||
streamlit==1.33.0 | ||
streamlit-nightly |
2 changes: 1 addition & 1 deletion
2
python/api-examples-source/utilities.switch_page/requirements.txt
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 +1 @@ | ||
streamlit==1.33.0 | ||
streamlit-nightly |
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 +1 @@ | ||
streamlit==1.33.0 | ||
streamlit-nightly |
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,3 +1,3 @@ | ||
streamlit==1.33.0 | ||
streamlit-nightly | ||
openai | ||
langchain |