spuun commited on
Commit
0d2df58
1 Parent(s): d62e77c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,5 +7,5 @@ captioner = pipeline(model=model_id)
7
  def launch(input):
8
  return captioner(input)[0]["generated_text"]
9
 
10
- iface = gr.Interface(fn=launch, inputs="pil", outputs="text")
11
  iface.launch()
 
7
  def launch(input):
8
  return captioner(input)[0]["generated_text"]
9
 
10
+ iface = gr.Interface(fn=launch, inputs=gr.Image(type="pil"), outputs="text")
11
  iface.launch()