Spaces:
Sleeping
Sleeping
Commit
·
9abfd25
1
Parent(s):
62f7e65
Update app.py
Browse files
app.py
CHANGED
@@ -57,13 +57,14 @@ def evaluate(img):
|
|
57 |
|
58 |
return {species_label:1.0}
|
59 |
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
|
|
|
57 |
|
58 |
return {species_label:1.0}
|
59 |
|
60 |
+
if __name__ == '__main__':
|
61 |
+
# Gradio interface
|
62 |
+
species_model = gr.Interface(
|
63 |
+
evaluate,
|
64 |
+
gr.inputs.Image(shape=(200, 200)),
|
65 |
+
outputs="label",
|
66 |
+
title='Species Classification',
|
67 |
+
description='Species Classification',
|
68 |
+
article='Species Classification'
|
69 |
+
)
|
70 |
+
species_model.launch(share=True, debug=True)
|