Spaces:
Running
Running
phyloforfun
commited on
Commit
•
a775993
1
Parent(s):
b5cc8d5
updates
Browse files
app.py
CHANGED
@@ -372,6 +372,7 @@ def handle_image_upload_and_gallery():
|
|
372 |
|
373 |
def content_input_images(col_left, col_right):
|
374 |
SAFE = SafetyCheck(st.session_state['is_hf'])
|
|
|
375 |
|
376 |
st.write('---')
|
377 |
# col1, col2 = st.columns([2,8])
|
@@ -397,6 +398,7 @@ def content_input_images(col_left, col_right):
|
|
397 |
if st.session_state.is_hf:
|
398 |
if uploaded_files:
|
399 |
is_violation = False
|
|
|
400 |
for uploaded_file in uploaded_files:
|
401 |
if SAFE.check_for_inappropriate_content(uploaded_file):
|
402 |
clear_image_uploads()
|
|
|
372 |
|
373 |
def content_input_images(col_left, col_right):
|
374 |
SAFE = SafetyCheck(st.session_state['is_hf'])
|
375 |
+
is_violation = False
|
376 |
|
377 |
st.write('---')
|
378 |
# col1, col2 = st.columns([2,8])
|
|
|
398 |
if st.session_state.is_hf:
|
399 |
if uploaded_files:
|
400 |
is_violation = False
|
401 |
+
|
402 |
for uploaded_file in uploaded_files:
|
403 |
if SAFE.check_for_inappropriate_content(uploaded_file):
|
404 |
clear_image_uploads()
|