From c7981c792adb55cb7c29d1f8d901b62e217e71e2 Mon Sep 17 00:00:00 2001 From: Stan Girard Date: Wed, 17 May 2023 12:18:55 +0200 Subject: [PATCH] fix(demo): max size audio --- loaders/audio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/loaders/audio.py b/loaders/audio.py index 5727bd6d5..026b8920c 100644 --- a/loaders/audio.py +++ b/loaders/audio.py @@ -37,8 +37,8 @@ def _transcribe_audio(api_key, audio_file, stats_db): def process_audio(vector_store, file_name, stats_db): if st.secrets.self_hosted == "false": - if file_name.size > 100000000: - st.error("File size is too large. Please upload a file smaller than 2MB.") + if file_name.size > 10000000: + st.error("File size is too large. Please upload a file smaller than 1MB.") return file_sha = "" dateshort = time.strftime("%Y%m%d-%H%M%S")