Spaces:
Sleeping
Sleeping
modified model
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ if file_name is not None:
|
|
12 |
col1, col2 = st.columns(2)
|
13 |
image = Image.open(file_name)
|
14 |
col1.image(image, use_column_width=True)
|
15 |
-
pred,pred_idx,probs = model.predict(
|
16 |
col2.header("Prediction:")
|
17 |
st.write('This is a ', pred, '!')
|
18 |
else:
|
|
|
12 |
col1, col2 = st.columns(2)
|
13 |
image = Image.open(file_name)
|
14 |
col1.image(image, use_column_width=True)
|
15 |
+
pred,pred_idx,probs = model.predict(PILImage.create(file_name))
|
16 |
col2.header("Prediction:")
|
17 |
st.write('This is a ', pred, '!')
|
18 |
else:
|