Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
|
2 |
-
import os
|
3 |
|
4 |
|
5 |
|
@@ -30,7 +30,7 @@ def predict(image,max_length=64, num_beams=4):
|
|
30 |
input = gr.inputs.Image(label="Upload your Image", type = 'pil', optional=True)
|
31 |
output = gr.outputs.Textbox(type="auto",label="Captions")
|
32 |
#examples = [f"example{i}.jpg" for i in range(1,7)]
|
33 |
-
examples = os.listdir()
|
34 |
description= "Image captioning application made using transformers"
|
35 |
title = "Image Captioning 🖼️"
|
36 |
|
|
|
1 |
|
2 |
+
#import os
|
3 |
|
4 |
|
5 |
|
|
|
30 |
input = gr.inputs.Image(label="Upload your Image", type = 'pil', optional=True)
|
31 |
output = gr.outputs.Textbox(type="auto",label="Captions")
|
32 |
#examples = [f"example{i}.jpg" for i in range(1,7)]
|
33 |
+
#examples = os.listdir()
|
34 |
description= "Image captioning application made using transformers"
|
35 |
title = "Image Captioning 🖼️"
|
36 |
|