mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-09-11 14:36:35 +03:00
fix(demo): max size audio
This commit is contained in:
parent
c41fe32cf0
commit
c7981c792a
@ -37,8 +37,8 @@ def _transcribe_audio(api_key, audio_file, stats_db):
|
|||||||
|
|
||||||
def process_audio(vector_store, file_name, stats_db):
|
def process_audio(vector_store, file_name, stats_db):
|
||||||
if st.secrets.self_hosted == "false":
|
if st.secrets.self_hosted == "false":
|
||||||
if file_name.size > 100000000:
|
if file_name.size > 10000000:
|
||||||
st.error("File size is too large. Please upload a file smaller than 2MB.")
|
st.error("File size is too large. Please upload a file smaller than 1MB.")
|
||||||
return
|
return
|
||||||
file_sha = ""
|
file_sha = ""
|
||||||
dateshort = time.strftime("%Y%m%d-%H%M%S")
|
dateshort = time.strftime("%Y%m%d-%H%M%S")
|
||||||
|
Loading…
Reference in New Issue
Block a user