Spaces:
Sleeping
Sleeping
fix of scrolling
Browse files
app.py
CHANGED
@@ -88,7 +88,7 @@ model = load_model(model_path)
|
|
88 |
# Create the Gradio interface
|
89 |
iface = gr.Interface(
|
90 |
fn=predict_image,
|
91 |
-
inputs=gr.Image(),
|
92 |
outputs=[gr.Label(num_top_classes=1), gr.HTML()],
|
93 |
title="Image Classification",
|
94 |
description="Upload an image to get the predicted label",
|
@@ -96,4 +96,4 @@ iface = gr.Interface(
|
|
96 |
)
|
97 |
|
98 |
# Launch the interface
|
99 |
-
iface.launch()
|
|
|
88 |
# Create the Gradio interface
|
89 |
iface = gr.Interface(
|
90 |
fn=predict_image,
|
91 |
+
inputs=gr.Image(height=500),
|
92 |
outputs=[gr.Label(num_top_classes=1), gr.HTML()],
|
93 |
title="Image Classification",
|
94 |
description="Upload an image to get the predicted label",
|
|
|
96 |
)
|
97 |
|
98 |
# Launch the interface
|
99 |
+
iface.launch()
|