Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -60,7 +60,7 @@ def upload_and_process_file(file_path):
|
|
| 60 |
raise
|
| 61 |
|
| 62 |
def allowed_file(filename):
|
| 63 |
-
ALLOWED_EXTENSIONS = {'txt',
|
| 64 |
return '.' in filename and filename.rsplit('.', 1)[1].lower() in ALLOWED_EXTENSIONS
|
| 65 |
|
| 66 |
# Initialiser le modèle
|
|
@@ -112,7 +112,7 @@ with input_container:
|
|
| 112 |
col1, col2, col3 = st.columns([8, 1, 1])
|
| 113 |
|
| 114 |
with col3:
|
| 115 |
-
uploaded_files = st.file_uploader("", type=["txt",
|
| 116 |
accept_multiple_files=True, key="files",
|
| 117 |
label_visibility="collapsed")
|
| 118 |
st.markdown("📁", unsafe_allow_html=True)
|
|
|
|
| 60 |
raise
|
| 61 |
|
| 62 |
def allowed_file(filename):
|
| 63 |
+
ALLOWED_EXTENSIONS = {'txt','mp4','mp3','pdf', 'png', 'jpg', 'jpeg', 'gif'}
|
| 64 |
return '.' in filename and filename.rsplit('.', 1)[1].lower() in ALLOWED_EXTENSIONS
|
| 65 |
|
| 66 |
# Initialiser le modèle
|
|
|
|
| 112 |
col1, col2, col3 = st.columns([8, 1, 1])
|
| 113 |
|
| 114 |
with col3:
|
| 115 |
+
uploaded_files = st.file_uploader("", type=["txt","mp4","mp3","pdf"],
|
| 116 |
accept_multiple_files=True, key="files",
|
| 117 |
label_visibility="collapsed")
|
| 118 |
st.markdown("📁", unsafe_allow_html=True)
|