Skip to content

Commit 4549543

Browse files
Prerelease 1.52.0 - embedded apps (#1377)
* Remove container width="content" from 1.51.0 * Chat audio example * Deferred download example * Datetime input examples * Switch page query param example * Button keyboard shortcut example * Page link query params example * Bump to nightly
1 parent d332a90 commit 4549543

File tree

36 files changed

+105
-28
lines changed

36 files changed

+105
-28
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
streamlit>=1.51.0
1+
streamlit-nightly
22
webvtt-py
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import streamlit as st
22

33
with st.sidebar:
4-
messages = st.container(height=300)
4+
messages = st.container(height=200)
55
if prompt := st.chat_input("Say something"):
66
messages.chat_message("user").write(prompt)
77
messages.chat_message("assistant").write(f"Echo: {prompt}")
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import streamlit as st
2+
3+
prompt = st.chat_input(
4+
"Say or record something",
5+
accept_audio=True,
6+
)
7+
if prompt and prompt.text:
8+
st.write("Text:", prompt.text)
9+
if prompt and prompt.audio:
10+
st.audio(prompt.audio)
11+
st.write("Audio file:", prompt.audio.name)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
streamlit>=1.51.0
1+
streamlit-nightly

python/api-examples-source/hello/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ pandas==1.5.3
22
numpy==1.23.5
33
altair==4.2.0
44
pydeck==0.8.0
5-
streamlit>=1.51.0
5+
streamlit-nightly

python/api-examples-source/mpa-hello/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ numpy==1.23.5
33
altair==4.2.0
44
pydeck==0.8.0
55
opencv-python-headless==4.8.1.78
6-
streamlit>=1.51.0
6+
streamlit-nightly
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
streamlit>=1.51.0
1+
streamlit-nightly
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
streamlit>=1.51.0
1+
streamlit-nightly
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
streamlit>=1.51.0
1+
streamlit-nightly

python/api-examples-source/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ pydeck
1111
Faker
1212
openai
1313
vega_datasets
14-
streamlit>=1.51.0
14+
streamlit-nightly

0 commit comments

Comments
 (0)