Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
@@ -30,15 +30,12 @@ def generate_captions(image):
|
|
30 |
|
31 |
|
32 |
examples = [["australia.jpg"], ["biden.png"], ["elon.jpg"], ["horns.jpg"], ["man.jpg"], ["nun.jpg"], ["painting.jpg"], ["pentagon.jpg"], ["pollock.jpg"], ["radcliffe.jpg"], ["split.jpg"], ["waves.jpg"], ["yeti.jpg"]]
|
33 |
-
outputs = [
|
34 |
-
gr.outputs.Textbox(label="Caption including detected generator (if applicable)"),
|
35 |
-
]
|
36 |
|
37 |
title = "Generator Identification via Image Captioning"
|
38 |
description = "Gradio Demo to illustrate the use of a fine-tuned BLIP image captioning to identify synthetic images. To use it, simply upload your image and click 'submit', or click one of the examples to load them."
|
39 |
|
40 |
interface = gr.Interface(fn=generate_captions,
|
41 |
-
inputs=
|
42 |
outputs="textbox",
|
43 |
examples=examples,
|
44 |
title=title,
|
|
|
30 |
|
31 |
|
32 |
examples = [["australia.jpg"], ["biden.png"], ["elon.jpg"], ["horns.jpg"], ["man.jpg"], ["nun.jpg"], ["painting.jpg"], ["pentagon.jpg"], ["pollock.jpg"], ["radcliffe.jpg"], ["split.jpg"], ["waves.jpg"], ["yeti.jpg"]]
|
|
|
|
|
|
|
33 |
|
34 |
title = "Generator Identification via Image Captioning"
|
35 |
description = "Gradio Demo to illustrate the use of a fine-tuned BLIP image captioning to identify synthetic images. To use it, simply upload your image and click 'submit', or click one of the examples to load them."
|
36 |
|
37 |
interface = gr.Interface(fn=generate_captions,
|
38 |
+
inputs="image",
|
39 |
outputs="textbox",
|
40 |
examples=examples,
|
41 |
title=title,
|