umm-maybe commited on
Commit
4c0a3b4
1 Parent(s): 43c3714

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -12,5 +12,9 @@ def caption_image(raw_image):
12
  out = model.generate(**inputs)
13
  return processor.decode(out[0], skip_special_tokens=True)
14
 
15
- demo = gr.Interface(fn=caption_image, inputs="image", outputs="caption")
 
 
 
 
16
  demo.launch()
 
12
  out = model.generate(**inputs)
13
  return processor.decode(out[0], skip_special_tokens=True)
14
 
15
+ outputs = [
16
+ gr.outputs.Textbox(label="Caption, including detected generator (if applicable)"),
17
+ ]
18
+
19
+ demo = gr.Interface(fn=caption_image, inputs="image", outputs=outputs)
20
  demo.launch()