Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,13 +22,14 @@ def predict(image,max_length=64, num_beams=4):
|
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
-
input = gr.inputs.Image(label="
|
| 26 |
output = gr.outputs.Textbox(type="auto",label="Captions")
|
| 27 |
examples = [f"example{i}.jpg" for i in range(1,3)]
|
| 28 |
|
| 29 |
-
article = "
|
| 30 |
title = "Image Captioning "
|
| 31 |
|
|
|
|
| 32 |
interface = gr.Interface(
|
| 33 |
fn=predict,
|
| 34 |
inputs = input,
|
|
|
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
+
input = gr.inputs.Image(label="Upload yuor Image", type = 'pil', optional=True)
|
| 26 |
output = gr.outputs.Textbox(type="auto",label="Captions")
|
| 27 |
examples = [f"example{i}.jpg" for i in range(1,3)]
|
| 28 |
|
| 29 |
+
article = gr.Markdown("""###Created by : Shreyas Dixit """)
|
| 30 |
title = "Image Captioning "
|
| 31 |
|
| 32 |
+
|
| 33 |
interface = gr.Interface(
|
| 34 |
fn=predict,
|
| 35 |
inputs = input,
|