zanemotiwala
commited on
Commit
•
900454a
1
Parent(s):
2bcfee7
Update app.py
Browse files
app.py
CHANGED
@@ -31,14 +31,14 @@ def predict(image):
|
|
31 |
# Set up Gradio interface
|
32 |
input = gr.Image(label="Upload any Image", type='pil')
|
33 |
outputs = [gr.Textbox(label="Caption"), gr.Image(label="Generated Image")]
|
34 |
-
examples = ['example1.jpeg']
|
35 |
|
36 |
title = "Image Captioning and Generation"
|
37 |
interface = gr.Interface(
|
38 |
fn=predict,
|
39 |
inputs=input,
|
40 |
outputs=outputs,
|
41 |
-
examples=examples,
|
42 |
title=title,
|
43 |
)
|
44 |
interface.launch(debug=True)
|
|
|
31 |
# Set up Gradio interface
|
32 |
input = gr.Image(label="Upload any Image", type='pil')
|
33 |
outputs = [gr.Textbox(label="Caption"), gr.Image(label="Generated Image")]
|
34 |
+
#examples = ['example1.jpeg']
|
35 |
|
36 |
title = "Image Captioning and Generation"
|
37 |
interface = gr.Interface(
|
38 |
fn=predict,
|
39 |
inputs=input,
|
40 |
outputs=outputs,
|
41 |
+
#examples=examples,
|
42 |
title=title,
|
43 |
)
|
44 |
interface.launch(debug=True)
|