LucyintheSky commited on
Commit
265f964
β€’
1 Parent(s): c686dd0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -42,15 +42,16 @@ def search(image_dict):
42
  print('id', id)
43
  #label = dataset_with_embeddings.features["label"].names[id]
44
  #print('label', label)
45
- result.append((retrieved_examples["image"][i], "[link](https://www.lucyinthesky.com/)"))
46
 
47
  return result
48
 
49
  iface = gr.Interface(fn=search,
50
  description="""
51
  <center><a href="https://www.lucyinthesky.com/"><img width="500" src="https://cdn.discordapp.com/attachments/1120417968032063538/1201666647157657640/LucyITS-2022-blk.png?ex=65caa646&is=65b83146&hm=09ad6fe279edc3a32981306d563e63af815d760fc0d8d0a3fbef4e4553c0a83a&"> </a> </center>
52
-
53
  <center> Sketch to find your favorite Lucy in the Sky dress! </center>
 
54
  """,
55
  inputs=gr.ImageEditor(label='Sketchpad' ,type='filepath', value={'background': './template.JPG', 'layers': None, 'composite': None}, sources=['upload'], transforms=[]),
56
  outputs=gr.Gallery(label='Similar', object_fit='contain', height=1200),
 
42
  print('id', id)
43
  #label = dataset_with_embeddings.features["label"].names[id]
44
  #print('label', label)
45
+ result.append((retrieved_examples["image"][i], """[link](https://www.lucyinthesky.com/)"""))
46
 
47
  return result
48
 
49
  iface = gr.Interface(fn=search,
50
  description="""
51
  <center><a href="https://www.lucyinthesky.com/"><img width="500" src="https://cdn.discordapp.com/attachments/1120417968032063538/1201666647157657640/LucyITS-2022-blk.png?ex=65caa646&is=65b83146&hm=09ad6fe279edc3a32981306d563e63af815d760fc0d8d0a3fbef4e4553c0a83a&"> </a> </center>
52
+ <br>
53
  <center> Sketch to find your favorite Lucy in the Sky dress! </center>
54
+ <br>
55
  """,
56
  inputs=gr.ImageEditor(label='Sketchpad' ,type='filepath', value={'background': './template.JPG', 'layers': None, 'composite': None}, sources=['upload'], transforms=[]),
57
  outputs=gr.Gallery(label='Similar', object_fit='contain', height=1200),