Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
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()
|