Spaces:
Sleeping
Sleeping
Commit
·
2ab7142
1
Parent(s):
1f6f2c5
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,7 +42,7 @@ def predict_input_image(img):
|
|
| 42 |
return {class_names[i]: float(prediction[i]) for i in range(len(class_names))}
|
| 43 |
|
| 44 |
|
| 45 |
-
image = gr.Image()
|
| 46 |
label = gr.Label(num_top_classes=len(class_names))
|
| 47 |
|
| 48 |
gr.Interface(fn=predict_input_image, inputs=image, outputs=label, theme="default",
|
|
|
|
| 42 |
return {class_names[i]: float(prediction[i]) for i in range(len(class_names))}
|
| 43 |
|
| 44 |
|
| 45 |
+
image = gr.Image(height=224, width=224)
|
| 46 |
label = gr.Label(num_top_classes=len(class_names))
|
| 47 |
|
| 48 |
gr.Interface(fn=predict_input_image, inputs=image, outputs=label, theme="default",
|