Spaces:
Runtime error
Runtime error
Commit
·
ddf0c20
1
Parent(s):
7ec2928
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def predict(image,max_length=64,device='cpu'):
|
|
18 |
return generated_caption
|
19 |
|
20 |
|
21 |
-
input = gr.inputs.Image(label="
|
22 |
output = gr.outputs.Textbox(type="text",label="Captions")
|
23 |
|
24 |
|
|
|
18 |
return generated_caption
|
19 |
|
20 |
|
21 |
+
input = gr.inputs.Image(label="Please upload a remote sensing image", type = 'pil', optional=True)
|
22 |
output = gr.outputs.Textbox(type="text",label="Captions")
|
23 |
|
24 |
|