gpucce commited on
Commit
1e56664
1 Parent(s): df25445
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,5 +12,5 @@ def output_generate(image):
12
  generated = model.generate(im)
13
  return open_clip.decode(generated[0]).split("<end_of_text>")[0].replace("<start_of_text>", "")
14
 
15
- iface = gr.Interface(fn=output_generate, inputs=gr.Ifimage(type="pil"), outputs="text")
16
  iface.launch()
 
12
  generated = model.generate(im)
13
  return open_clip.decode(generated[0]).split("<end_of_text>")[0].replace("<start_of_text>", "")
14
 
15
+ iface = gr.Interface(fn=output_generate, inputs=gr.Image(type="pil"), outputs="text")
16
  iface.launch()