Spaces:
Runtime error
Runtime error
CesarLeblanc
commited on
Commit
•
a7e54a7
1
Parent(s):
079e99c
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,10 @@ def text_classification(text, typology, confidence):
|
|
27 |
image_output = gr.Image(value=image_url)
|
28 |
return formatted_output, image_output
|
29 |
|
30 |
-
examples=[
|
|
|
|
|
|
|
31 |
|
32 |
io = gr.Interface(fn=text_classification,
|
33 |
inputs=[gr.Textbox(lines=2, label="List of comma-separated binomial names of species (see examples)", placeholder="Enter species here..."), gr.Dropdown(["EUNIS"], label="Typology", info="Will add more typologies later!"), gr.Slider(0, 100, value=50, label="Confidence", info="Choose the level of confidence for the prediction")],
|
|
|
27 |
image_output = gr.Image(value=image_url)
|
28 |
return formatted_output, image_output
|
29 |
|
30 |
+
examples=[
|
31 |
+
["sparganium erectum, calystegia sepium, persicaria amphibia", "EUNIS", 50],
|
32 |
+
["thinopyrum junceum, cakile maritima", "EUNIS", 50]
|
33 |
+
]
|
34 |
|
35 |
io = gr.Interface(fn=text_classification,
|
36 |
inputs=[gr.Textbox(lines=2, label="List of comma-separated binomial names of species (see examples)", placeholder="Enter species here..."), gr.Dropdown(["EUNIS"], label="Typology", info="Will add more typologies later!"), gr.Slider(0, 100, value=50, label="Confidence", info="Choose the level of confidence for the prediction")],
|