-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Description
问题描述 | Current Behavior
I would like to have the function which turn pics into a short video with AI rpompt. thanks for your help.
streamlit.errors.StreamlitAPIException: Invalid file extension: .jpg
. Allowed: ['.mp4', '.mov', '.avi', '.flv', '.mkv', '.jpg', '.jpeg', '.png', '.mpeg4']
File "/usr/local/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 121, in exec_func_with_error_handling
result = func()
^^^^^^
File "/usr/local/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 599, in code_to_exec
self._session_state.on_script_will_rerun(
File "/usr/local/lib/python3.11/site-packages/streamlit/runtime/state/safe_session_state.py", line 68, in on_script_will_rerun
self._state.on_script_will_rerun(latest_widget_states)
File "/usr/local/lib/python3.11/site-packages/streamlit/runtime/state/session_state.py", line 558, in on_script_will_rerun
self._call_callbacks()
File "/usr/local/lib/python3.11/site-packages/streamlit/runtime/state/session_state.py", line 566, in _call_callbacks
changed_widget_ids = [
^
File "/usr/local/lib/python3.11/site-packages/streamlit/runtime/state/session_state.py", line 567, in
wid for wid in self._new_widget_state if self._widget_changed(wid)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/streamlit/runtime/state/session_state.py", line 579, in _widget_changed
new_value = self._new_widget_state.get(widget_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 774, in get
File "/usr/local/lib/python3.11/site-packages/streamlit/runtime/state/session_state.py", line 128, in getitem
deserialized = metadata.deserializer(value, metadata.id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/streamlit/elements/widgets/file_uploader.py", line 115, in deserialize
enforce_filename_restriction(file.name, self.allowed_types)
File "/usr/local/lib/python3.11/site-packages/streamlit/elements/lib/file_uploader_utils.py", line 65, in enforce_filename_restriction
raise StreamlitAPIException(
重现步骤 | Steps to Reproduce
- 打開视频设置
- 選擇本地文件
- 上傳 10 pcs w/ .jpg format
- error message as above
错误日志 | Error Logs
streamlit.errors.StreamlitAPIException: Invalid file extension: .jpg
. Allowed: ['.mp4', '.mov', '.avi', '.flv', '.mkv', '.jpg', '.jpeg', '.png', '.mpeg4']
File "/usr/local/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 121, in exec_func_with_error_handling
result = func()
^^^^^^
File "/usr/local/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 599, in code_to_exec
self._session_state.on_script_will_rerun(
File "/usr/local/lib/python3.11/site-packages/streamlit/runtime/state/safe_session_state.py", line 68, in on_script_will_rerun
self._state.on_script_will_rerun(latest_widget_states)
File "/usr/local/lib/python3.11/site-packages/streamlit/runtime/state/session_state.py", line 558, in on_script_will_rerun
self._call_callbacks()
File "/usr/local/lib/python3.11/site-packages/streamlit/runtime/state/session_state.py", line 566, in _call_callbacks
changed_widget_ids = [
^
File "/usr/local/lib/python3.11/site-packages/streamlit/runtime/state/session_state.py", line 567, in
wid for wid in self._new_widget_state if self._widget_changed(wid)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/streamlit/runtime/state/session_state.py", line 579, in _widget_changed
new_value = self._new_widget_state.get(widget_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 774, in get
File "/usr/local/lib/python3.11/site-packages/streamlit/runtime/state/session_state.py", line 128, in getitem
deserialized = metadata.deserializer(value, metadata.id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/streamlit/elements/widgets/file_uploader.py", line 115, in deserialize
enforce_filename_restriction(file.name, self.allowed_types)
File "/usr/local/lib/python3.11/site-packages/streamlit/elements/lib/file_uploader_utils.py", line 65, in enforce_filename_restriction
raise StreamlitAPIException(
Python 版本 | Python Version
v3.10.0
操作系统 | Operating System
win11
MoneyPrinterTurbo 版本 | Version
v1.2.6
补充信息 | Additional Information
No response