Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def predict(image,max_length=64, num_beams=4):
|
|
22 |
|
23 |
|
24 |
|
25 |
-
input = gr.inputs.Image(label="Upload
|
26 |
output = gr.outputs.Textbox(type="auto",label="Captions")
|
27 |
examples = [f"example{i}.jpg" for i in range(1,3)]
|
28 |
|
|
|
22 |
|
23 |
|
24 |
|
25 |
+
input = gr.inputs.Image(label="Upload your 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 |
|