Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ class_names = ['Cancer' 'Non_Cancer']
|
|
| 17 |
def predict_input_image(img):
|
| 18 |
img_4d=img.reshape(-1,100,100,3)
|
| 19 |
prediction=model.predict(img_4d)[0]
|
| 20 |
-
return {class_names[i]: float(prediction[i]) for i in range(
|
| 21 |
image = gr.Image(shape=(100,100))
|
| 22 |
label = gr.Label(num_top_classes=2)
|
| 23 |
|
|
|
|
| 17 |
def predict_input_image(img):
|
| 18 |
img_4d=img.reshape(-1,100,100,3)
|
| 19 |
prediction=model.predict(img_4d)[0]
|
| 20 |
+
return {class_names[i]: float(prediction[i]) for i in range(2)}
|
| 21 |
image = gr.Image(shape=(100,100))
|
| 22 |
label = gr.Label(num_top_classes=2)
|
| 23 |
|