Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -84,12 +84,12 @@ if image is not None:
|
|
84 |
#st. subheader (f"Response from Covid Analyzer API = {prediction}")
|
85 |
|
86 |
#OPTION 2 - NON API..
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
|
94 |
|
95 |
|
|
|
84 |
#st. subheader (f"Response from Covid Analyzer API = {prediction}")
|
85 |
|
86 |
#OPTION 2 - NON API..
|
87 |
+
if st.button ('Analyze'):
|
88 |
+
with st.spinner('Analyzing...'):
|
89 |
+
prediction = image_predict(saved)
|
90 |
+
#st.write(prediction)
|
91 |
+
st. subheader (f"Image Prediction = {prediction}")
|
92 |
+
st.success(f"Image Prediction = {prediction}", icon="✅")
|
93 |
|
94 |
|
95 |
|