Spaces:
Running
Running
Commit
·
ca1165d
1
Parent(s):
18c09a5
Update app.py
Browse files
app.py
CHANGED
@@ -42,11 +42,10 @@ elif opt == 'Upload image via link':
|
|
42 |
if 'image' in locals(): # Check if image variable exists
|
43 |
st.image(image, width=300, caption='Uploaded Image')
|
44 |
|
45 |
-
st.info('Worked')
|
46 |
-
|
47 |
if st.button('Predict'):
|
48 |
try:
|
49 |
model = model_arc() # Initialize your model
|
|
|
50 |
|
51 |
# Ensure image shape is correct and add batch dimension
|
52 |
img_array = preprocess(image) # This should return an array of shape (1, 256, 256, 3)
|
|
|
42 |
if 'image' in locals(): # Check if image variable exists
|
43 |
st.image(image, width=300, caption='Uploaded Image')
|
44 |
|
|
|
|
|
45 |
if st.button('Predict'):
|
46 |
try:
|
47 |
model = model_arc() # Initialize your model
|
48 |
+
st.info('Worked')
|
49 |
|
50 |
# Ensure image shape is correct and add batch dimension
|
51 |
img_array = preprocess(image) # This should return an array of shape (1, 256, 256, 3)
|