Spaces:
Runtime error
Runtime error
update examples
Browse files- app.py +7 -1
- examples/OldTrafford.jpeg +0 -0
- examples/coffee.jpg +0 -0
- drug.jpg → examples/drug.jpg +0 -0
- examples/harry.jpeg +0 -0
app.py
CHANGED
@@ -265,7 +265,13 @@ def inference(img, text, is_translation):
|
|
265 |
|
266 |
title = "CLIP Dual encoder"
|
267 |
description = "You can translate English to Vietnamese or generate Vietnamese caption from image"
|
268 |
-
examples=[
|
|
|
|
|
|
|
|
|
|
|
|
|
269 |
|
270 |
inputs = [
|
271 |
gr.inputs.Image(type="file", label="Image to generate Vietnamese caption", optional=True),
|
|
|
265 |
|
266 |
title = "CLIP Dual encoder"
|
267 |
description = "You can translate English to Vietnamese or generate Vietnamese caption from image"
|
268 |
+
examples=[
|
269 |
+
["examples/drug.jpg","", False],
|
270 |
+
["examples/harry.jpeg","", False],
|
271 |
+
["examples/OldTrafford.jpg","", False],
|
272 |
+
["examples/coffee.jpg","", False],
|
273 |
+
["", "What is your name?", True]
|
274 |
+
]
|
275 |
|
276 |
inputs = [
|
277 |
gr.inputs.Image(type="file", label="Image to generate Vietnamese caption", optional=True),
|
examples/OldTrafford.jpeg
ADDED
examples/coffee.jpg
ADDED
drug.jpg → examples/drug.jpg
RENAMED
File without changes
|
examples/harry.jpeg
ADDED