Skip to content

Commit

Permalink
Increase file upload limit (#219)
Browse files Browse the repository at this point in the history
* fix: increase max upload size to 1024

* feat: add support for mp4 file uploads in the file uploader
  • Loading branch information
vasiliadi authored Feb 24, 2025
1 parent 238956f commit 6e5d349
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/.streamlit/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ disableWidgetStateDuplicationWarning = true
gatherUsageStats = false

[server]
maxUploadSize = 300
maxUploadSize = 1024
2 changes: 1 addition & 1 deletion src/streamlit_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ def process_transcription():
data_input = st.file_uploader(
"Choose a file:",
# https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/audio-understanding#audio-requirements
type=["wav", "mp3", "aiff", "aac", "ogg", "flac", "m4a"],
type=["wav", "mp3", "aiff", "aac", "ogg", "flac", "m4a", "mp4"],
)
if st.session_state.mode == "YouTube or link to an audio file":
data_input = st.text_input(
Expand Down

0 comments on commit 6e5d349

Please sign in to comment.