Spaces:
Running
Running
Update index.html
Browse files- index.html +1 -1
index.html
CHANGED
@@ -26,7 +26,7 @@ async def classify(image, classes):
|
|
26 |
result = [{item['label']: round(item['score'], 2) for item in data}]
|
27 |
return result
|
28 |
|
29 |
-
demo = gr.Interface(
|
30 |
demo.launch()
|
31 |
</gradio-file>
|
32 |
|
|
|
26 |
result = [{item['label']: round(item['score'], 2) for item in data}]
|
27 |
return result
|
28 |
|
29 |
+
demo = gr.Interface(classify, [gr.Image(label="Input image", type="filepath"), gr.Textbox(label="Classes separated by commas")], gr.Label())
|
30 |
demo.launch()
|
31 |
</gradio-file>
|
32 |
|