Update app.py
Browse files
app.py
CHANGED
|
@@ -24,7 +24,6 @@ def predict(image,max_length=64, num_beams=4):
|
|
| 24 |
|
| 25 |
input = gr.inputs.Image(label="Upload your Image", type = 'pil', optional=True)
|
| 26 |
output = gr.outputs.Textbox(type="text",label="Captions")
|
| 27 |
-
examples = [f"example{i}.jpg" for i in range(1,7)]
|
| 28 |
|
| 29 |
title = "Image Captioning "
|
| 30 |
|
|
@@ -33,7 +32,6 @@ interface = gr.Interface(
|
|
| 33 |
inputs = input,
|
| 34 |
theme="grass",
|
| 35 |
outputs=output,
|
| 36 |
-
examples = examples,
|
| 37 |
title=title,
|
| 38 |
)
|
| 39 |
interface.launch(debug=True)
|
|
|
|
| 24 |
|
| 25 |
input = gr.inputs.Image(label="Upload your Image", type = 'pil', optional=True)
|
| 26 |
output = gr.outputs.Textbox(type="text",label="Captions")
|
|
|
|
| 27 |
|
| 28 |
title = "Image Captioning "
|
| 29 |
|
|
|
|
| 32 |
inputs = input,
|
| 33 |
theme="grass",
|
| 34 |
outputs=output,
|
|
|
|
| 35 |
title=title,
|
| 36 |
)
|
| 37 |
interface.launch(debug=True)
|