Spaces:
Sleeping
Sleeping
jayasuriyaK
commited on
Commit
•
dae238e
1
Parent(s):
c671358
Update app.py
Browse files
app.py
CHANGED
@@ -67,6 +67,7 @@ def distinguish_rows(lst, thresh=10):
|
|
67 |
st.title("NSFW Content Detector")
|
68 |
|
69 |
# File uploader widget
|
|
|
70 |
uploaded_file = st.file_uploader("Upload an image", type=["jpg", "png", "jpeg"])
|
71 |
|
72 |
if uploaded_file is not None:
|
@@ -109,4 +110,5 @@ if uploaded_file is not None:
|
|
109 |
else:
|
110 |
print('Not safe')
|
111 |
st.write('Not Safe for Work')
|
112 |
-
pipeline = keras_ocr.pipeline.Pipeline()
|
|
|
|
67 |
st.title("NSFW Content Detector")
|
68 |
|
69 |
# File uploader widget
|
70 |
+
st.experimental_rerun()
|
71 |
uploaded_file = st.file_uploader("Upload an image", type=["jpg", "png", "jpeg"])
|
72 |
|
73 |
if uploaded_file is not None:
|
|
|
110 |
else:
|
111 |
print('Not safe')
|
112 |
st.write('Not Safe for Work')
|
113 |
+
pipeline = keras_ocr.pipeline.Pipeline()
|
114 |
+
|