Spaces:
Runtime error
Runtime error
Commit
·
aa462fc
1
Parent(s):
5493b2c
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def predict(image,max_length=64,device='cpu'):
|
|
20 |
|
21 |
|
22 |
|
23 |
-
input = gr.inputs.Image(label="Upload your Image", type = '
|
24 |
output = gr.outputs.Textbox(type="auto",label="Captions")
|
25 |
|
26 |
|
|
|
20 |
|
21 |
|
22 |
|
23 |
+
input = gr.inputs.Image(label="Upload your Image", type = 'pil', optional=True)
|
24 |
output = gr.outputs.Textbox(type="auto",label="Captions")
|
25 |
|
26 |
|