ancebuc commited on
Commit
c6cb1c5
1 Parent(s): cf253ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -31,7 +31,7 @@ def segment(img, clases):
31
  outputs = model(**inputs)
32
  preds = outputs.logits.unsqueeze(1)
33
 
34
- return "Hello " + prompts + "!!"
35
 
36
  demo = gr.Interface(fn=segment, inputs=["image","text"], outputs="text")
37
  demo.launch()
 
31
  outputs = model(**inputs)
32
  preds = outputs.logits.unsqueeze(1)
33
 
34
+ return "Hello " + prompts[0] + "!!"
35
 
36
  demo = gr.Interface(fn=segment, inputs=["image","text"], outputs="text")
37
  demo.launch()