vishnun commited on
Commit
6bcb798
·
1 Parent(s): 14e1c9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -64,8 +64,8 @@ def extract_image(image, text, prob, num=1):
64
  fi = sorted(final_ims, key=lambda item: item.get("score"), reverse=True)
65
  return fi[0]['image'], fi[0]['score']
66
 
67
- title = "ClipNCrop"
68
  description = "Extract sections of images from your image by using OpenAI's CLIP and Facebooks Detr implemented on HuggingFace Transformers"
69
  examples=[['ex3.jpg', 'black bag', 0.96],['ex2.jpg', 'man in red dress', 0.85]]
70
  article = "<p style='text-align: center'><a href='https://github.com/Vishnunkumar/clipcrop' target='_blank'>clipcrop</a></p>"
71
- gr.Interface(fn=extract_image, inputs=[i1, i2, i3], outputs=[o1, o2], title=title, description=description, article=article, examples=examples, enable_queue=True).launch()
 
64
  fi = sorted(final_ims, key=lambda item: item.get("score"), reverse=True)
65
  return fi[0]['image'], fi[0]['score']
66
 
67
+ title = "ClipnCrop"
68
  description = "Extract sections of images from your image by using OpenAI's CLIP and Facebooks Detr implemented on HuggingFace Transformers"
69
  examples=[['ex3.jpg', 'black bag', 0.96],['ex2.jpg', 'man in red dress', 0.85]]
70
  article = "<p style='text-align: center'><a href='https://github.com/Vishnunkumar/clipcrop' target='_blank'>clipcrop</a></p>"
71
+ gr.Interface(fn=extract_image, inputs=[i1, i2, i3], outputs=[o1, o2], title=title, description=description, article=article, examples=examples, enable_queue=True).launch()