Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -31,5 +31,5 @@ def predict_top_classes(img, num_top_classes=5):
|
|
31 |
|
32 |
model = tf.keras.models.load_model("Xception.h5")
|
33 |
|
34 |
-
interface = gr.Interface(predict_top_classes, gr.inputs.Image(type='pil'), outputs='
|
35 |
interface.launch()
|
|
|
31 |
|
32 |
model = tf.keras.models.load_model("Xception.h5")
|
33 |
|
34 |
+
interface = gr.Interface(predict_top_classes, gr.inputs.Image(type='pil'), outputs='json', args={'num_top_classes': 5})
|
35 |
interface.launch()
|