streamlit-nightly 1.39.1.dev20241017__py2.py3-none-any.whl → 1.39.1.dev20241018__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- streamlit/__init__.py +1 -0
- streamlit/elements/widgets/audio_input.py +44 -3
- {streamlit_nightly-1.39.1.dev20241017.dist-info → streamlit_nightly-1.39.1.dev20241018.dist-info}/METADATA +1 -1
- {streamlit_nightly-1.39.1.dev20241017.dist-info → streamlit_nightly-1.39.1.dev20241018.dist-info}/RECORD +8 -8
- {streamlit_nightly-1.39.1.dev20241017.data → streamlit_nightly-1.39.1.dev20241018.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.39.1.dev20241017.dist-info → streamlit_nightly-1.39.1.dev20241018.dist-info}/WHEEL +0 -0
- {streamlit_nightly-1.39.1.dev20241017.dist-info → streamlit_nightly-1.39.1.dev20241018.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.39.1.dev20241017.dist-info → streamlit_nightly-1.39.1.dev20241018.dist-info}/top_level.txt +0 -0
streamlit/__init__.py
CHANGED
@@ -161,6 +161,7 @@ secrets = _secrets_singleton
|
|
161
161
|
altair_chart = _main.altair_chart
|
162
162
|
area_chart = _main.area_chart
|
163
163
|
audio = _main.audio
|
164
|
+
audio_input = _main.audio_input
|
164
165
|
balloons = _main.balloons
|
165
166
|
bar_chart = _main.bar_chart
|
166
167
|
bokeh_chart = _main.bokeh_chart
|
@@ -20,6 +20,10 @@ from typing import TYPE_CHECKING, Union, cast
|
|
20
20
|
|
21
21
|
from typing_extensions import TypeAlias
|
22
22
|
|
23
|
+
from streamlit.deprecation_util import (
|
24
|
+
make_deprecated_name_warning,
|
25
|
+
show_deprecation_warning,
|
26
|
+
)
|
23
27
|
from streamlit.elements.lib.form_utils import current_form_id
|
24
28
|
from streamlit.elements.lib.policies import (
|
25
29
|
check_widget_policies,
|
@@ -83,8 +87,8 @@ class AudioInputSerde:
|
|
83
87
|
|
84
88
|
|
85
89
|
class AudioInputMixin:
|
86
|
-
@gather_metrics("
|
87
|
-
def
|
90
|
+
@gather_metrics("audio_input")
|
91
|
+
def audio_input(
|
88
92
|
self,
|
89
93
|
label: str,
|
90
94
|
*,
|
@@ -160,7 +164,7 @@ class AudioInputMixin:
|
|
160
164
|
--------
|
161
165
|
>>> import streamlit as st
|
162
166
|
>>>
|
163
|
-
>>> audio_value = st.
|
167
|
+
>>> audio_value = st.audio_input("Record a voice message")
|
164
168
|
>>>
|
165
169
|
>>> if audio_value:
|
166
170
|
... st.audio(audio_value)
|
@@ -183,6 +187,43 @@ class AudioInputMixin:
|
|
183
187
|
ctx=ctx,
|
184
188
|
)
|
185
189
|
|
190
|
+
@gather_metrics("experimental_audio_input")
|
191
|
+
def experimental_audio_input(
|
192
|
+
self,
|
193
|
+
label: str,
|
194
|
+
*,
|
195
|
+
key: Key | None = None,
|
196
|
+
help: str | None = None,
|
197
|
+
on_change: WidgetCallback | None = None,
|
198
|
+
args: WidgetArgs | None = None,
|
199
|
+
kwargs: WidgetKwargs | None = None,
|
200
|
+
disabled: bool = False,
|
201
|
+
label_visibility: LabelVisibility = "visible",
|
202
|
+
) -> UploadedFile | None:
|
203
|
+
"""Deprecated alias for st.audio_input.
|
204
|
+
See the docstring for the widget's new name."""
|
205
|
+
|
206
|
+
show_deprecation_warning(
|
207
|
+
make_deprecated_name_warning(
|
208
|
+
"experimental_audio_input",
|
209
|
+
"audio_input",
|
210
|
+
"2025-01-01",
|
211
|
+
)
|
212
|
+
)
|
213
|
+
|
214
|
+
ctx = get_script_run_ctx()
|
215
|
+
return self._audio_input(
|
216
|
+
label=label,
|
217
|
+
key=key,
|
218
|
+
help=help,
|
219
|
+
on_change=on_change,
|
220
|
+
args=args,
|
221
|
+
kwargs=kwargs,
|
222
|
+
disabled=disabled,
|
223
|
+
label_visibility=label_visibility,
|
224
|
+
ctx=ctx,
|
225
|
+
)
|
226
|
+
|
186
227
|
def _audio_input(
|
187
228
|
self,
|
188
229
|
label: str,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
streamlit/__init__.py,sha256=
|
1
|
+
streamlit/__init__.py,sha256=Z0PRC5Y8O7E37GYIA80UyJhcoolh1_EgacjDDe6mZZM,9618
|
2
2
|
streamlit/__main__.py,sha256=8vHowjccJfFMwrA22IEe3ynE9F670mkspbo9rYdM0ks,868
|
3
3
|
streamlit/cli_util.py,sha256=Lz5th7VSp4KILRLEkjfOK_7AVhNnv2JROl_8UF1MDQg,3383
|
4
4
|
streamlit/column_config.py,sha256=6RYqAsPV838B0DSb7nYPFedKfTxNCzVrc_4BmwMa_c4,1414
|
@@ -105,7 +105,7 @@ streamlit/elements/lib/streamlit_plotly_theme.py,sha256=DgMP_PWTfFO5J__q8bGxoT3e
|
|
105
105
|
streamlit/elements/lib/subtitle_utils.py,sha256=ciPgQ6Yi3NS7OdFgDH6lGFwDZpv022flEyQKY5lHNiE,6245
|
106
106
|
streamlit/elements/lib/utils.py,sha256=8VVty4Jd99ynSxjKKqVnEaVsFydBX2m2s24fIdkGgZI,7670
|
107
107
|
streamlit/elements/widgets/__init__.py,sha256=Vrf1yVMOcTyhUPnYvsfyeL96Vpd5z8KoSV5ZzTcTQgU,616
|
108
|
-
streamlit/elements/widgets/audio_input.py,sha256=
|
108
|
+
streamlit/elements/widgets/audio_input.py,sha256=KroApvExRV13-yrJ-C6JrUh-GC2JIWttvsK6nhJXxyE,9757
|
109
109
|
streamlit/elements/widgets/button.py,sha256=jTU7WGHpmZMzc-Gw1DxCfaSIQKtpdN6AHPM7rTirpbg,35986
|
110
110
|
streamlit/elements/widgets/button_group.py,sha256=1_lqdnPT5acWQ2NLeLyri2vjIt32BFjCzVv4DGl5sz8,28571
|
111
111
|
streamlit/elements/widgets/camera_input.py,sha256=Hw0TyeehVa4LSvUsERoNjh1pYHXuarw19r0gTCVxyBY,8593
|
@@ -540,9 +540,9 @@ streamlit/web/server/server_util.py,sha256=ioIHkXNlA_ujj2Q3isziM8r5glKxgK2JZRoCD
|
|
540
540
|
streamlit/web/server/stats_request_handler.py,sha256=e144zIhzLTB1PN4CwTCxElCoWMuo9IsBEPex2exHCQ0,3641
|
541
541
|
streamlit/web/server/upload_file_request_handler.py,sha256=ftyKpARrUjOpRcFETIXuoTyOG_mo-ToOw5NI0y_W4lE,5003
|
542
542
|
streamlit/web/server/websocket_headers.py,sha256=uUxypj04ondEC4ocBiYCndX_N06Zwe1Mt690Vupe08Y,2232
|
543
|
-
streamlit_nightly-1.39.1.
|
544
|
-
streamlit_nightly-1.39.1.
|
545
|
-
streamlit_nightly-1.39.1.
|
546
|
-
streamlit_nightly-1.39.1.
|
547
|
-
streamlit_nightly-1.39.1.
|
548
|
-
streamlit_nightly-1.39.1.
|
543
|
+
streamlit_nightly-1.39.1.dev20241018.data/scripts/streamlit.cmd,sha256=ZEYM3vBJSp-k7vwSJ3ba5NzEk9-qHdSeLvGYAAe1mMw,676
|
544
|
+
streamlit_nightly-1.39.1.dev20241018.dist-info/METADATA,sha256=TgdvDdfEmdFAdoTEdbqlnn62E57hppZQ25SKSQFKcZM,8512
|
545
|
+
streamlit_nightly-1.39.1.dev20241018.dist-info/WHEEL,sha256=TJ49d73sNs10F0aze1W_bTW2P_X7-F4YXOlBqoqA-jY,109
|
546
|
+
streamlit_nightly-1.39.1.dev20241018.dist-info/entry_points.txt,sha256=uNJ4DwGNXEhOK0USwSNanjkYyR-Bk7eYQbJFDrWyOgY,53
|
547
|
+
streamlit_nightly-1.39.1.dev20241018.dist-info/top_level.txt,sha256=V3FhKbm7G2LnR0s4SytavrjIPNIhvcsAGXfYHAwtQzw,10
|
548
|
+
streamlit_nightly-1.39.1.dev20241018.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|