Spaces:
Sleeping
Sleeping
app
Browse files
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.
|
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()
|