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