Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -41,9 +41,9 @@ def segment(img, clases):
|
|
41 |
|
42 |
return visualize_segmentation(image, prompts, preds)
|
43 |
|
44 |
-
demo = gr.Interface(fn=segment,
|
45 |
-
inputs=["image", gr.Textbox(label = 'Enter classes separated by ","')],
|
46 |
-
outputs="image",
|
47 |
-
examples=['desayuno.jpg', 'cutlery, pancakes, blueberries, orange juice']
|
48 |
)
|
49 |
demo.launch()
|
|
|
41 |
|
42 |
return visualize_segmentation(image, prompts, preds)
|
43 |
|
44 |
+
demo = gr.Interface(fn = segment,
|
45 |
+
inputs = ["image", gr.Textbox(label = 'Enter classes separated by ","')],
|
46 |
+
outputs = "image",
|
47 |
+
examples = [['desayuno.jpg', 'cutlery, pancakes, blueberries, orange juice']]
|
48 |
)
|
49 |
demo.launch()
|