imthanhlv commited on
Commit
0d94318
1 Parent(s): abded39

update examples

Browse files
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=[["drug.jpg","", False], ["", "What is your name?", True]]
 
 
 
 
 
 
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