Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,8 +16,15 @@ def predict(img):
|
|
| 16 |
#title = "Common beans diseases classfier"
|
| 17 |
#description = "An app for Common beans diseases Classisfication"
|
| 18 |
#article="<p style='text-align: center'>The app identifies and classifies common beans diseases: Anthracnose and Bean rust.</p>"
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
#title = "Common beans diseases classfier"
|
| 17 |
#description = "An app for Common beans diseases Classisfication"
|
| 18 |
#article="<p style='text-align: center'>The app identifies and classifies common beans diseases: Anthracnose and Bean rust.</p>"
|
| 19 |
+
# Create the Gradio interface
|
| 20 |
+
interface = gr.Interface(
|
| 21 |
+
fn=predict,
|
| 22 |
+
inputs=gr.Image(),
|
| 23 |
+
outputs=gr.Label(num_top_classes=3)
|
| 24 |
+
)
|
| 25 |
|
| 26 |
+
# Enable the queue to handle POST requests
|
| 27 |
+
interface.queue(api_open=True)
|
| 28 |
+
|
| 29 |
+
# Launch the interface
|
| 30 |
+
interface.launch()
|