Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -45,8 +45,8 @@ if uploaded_files:
|
|
45 |
score = predictions[0]
|
46 |
st.markdown("Predicted class of the image {} is : {}".format(file, class_names[np.argmax(score)]))
|
47 |
|
48 |
-
if st.button("Clear uploaded files"):
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
|
|
|
45 |
score = predictions[0]
|
46 |
st.markdown("Predicted class of the image {} is : {}".format(file, class_names[np.argmax(score)]))
|
47 |
|
48 |
+
if st.button("Clear uploaded files"):
|
49 |
+
state["file_uploader_key"] += 1
|
50 |
+
#uploaded_files = None
|
51 |
+
st.experimental_rerun()
|
52 |
|