Skip to content

Commit

Permalink
Prerelease 1.34.0 (#1049)
Browse files Browse the repository at this point in the history
* Update to nightly

* Add st.dialog example app code
  • Loading branch information
sfc-gh-dmatthews authored May 2, 2024
1 parent 4f1c7ce commit 8df1cbc
Show file tree
Hide file tree
Showing 13 changed files with 32 additions and 12 deletions.
2 changes: 1 addition & 1 deletion python/api-examples-source/charts.video3/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
streamlit==1.33.0
streamlit-nightly
webvtt-py
20 changes: 20 additions & 0 deletions python/api-examples-source/execution.dialog.py
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']}"
2 changes: 1 addition & 1 deletion python/api-examples-source/guides/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
streamlit==1.33.0
streamlit-nightly
2 changes: 1 addition & 1 deletion python/api-examples-source/hello/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ numpy==1.23.5
scipy
altair==4.2.0
pydeck==0.8.0
streamlit==1.33.0
streamlit-nightly
2 changes: 1 addition & 1 deletion python/api-examples-source/mpa-hello/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion python/api-examples-source/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
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
Expand Down
2 changes: 1 addition & 1 deletion python/api-examples-source/theming/requirements.txt
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
Original file line number Diff line number Diff line change
@@ -1 +1 @@
streamlit==1.33.0
streamlit-nightly
2 changes: 1 addition & 1 deletion python/api-examples-source/tutorials/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
streamlit==1.33.0
streamlit-nightly
Original file line number Diff line number Diff line change
@@ -1 +1 @@
streamlit==1.33.0
streamlit-nightly
Original file line number Diff line number Diff line change
@@ -1 +1 @@
streamlit==1.33.0
streamlit-nightly
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
streamlit==1.33.0
streamlit-nightly
openai
langchain

0 comments on commit 8df1cbc

Please sign in to comment.