Spaces:
Running
Running
Commit
·
f83f83b
1
Parent(s):
98a227a
fix safety check
Browse files
app.py
CHANGED
@@ -262,7 +262,6 @@ def handle_image_upload_and_gallery_hf(uploaded_files):
|
|
262 |
|
263 |
ind_small = 0
|
264 |
for uploaded_file in uploaded_files:
|
265 |
-
uploaded_file.seek(0)
|
266 |
if SAFE.check_for_inappropriate_content(uploaded_file):
|
267 |
clear_image_uploads()
|
268 |
report_violation(uploaded_file.name, is_hf=st.session_state['is_hf'])
|
|
|
262 |
|
263 |
ind_small = 0
|
264 |
for uploaded_file in uploaded_files:
|
|
|
265 |
if SAFE.check_for_inappropriate_content(uploaded_file):
|
266 |
clear_image_uploads()
|
267 |
report_violation(uploaded_file.name, is_hf=st.session_state['is_hf'])
|