Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,8 @@
|
|
|
|
1 |
import streamlit as st
|
2 |
import numpy as np
|
3 |
from PIL import Image
|
4 |
from transformers import CLIPProcessor, CLIPModel, YolosImageProcessor, YolosForObjectDetection
|
5 |
-
import torch
|
6 |
|
7 |
st.title("CLIP & CROP")
|
8 |
st.markdown("**Extract sections of images from your image by using OpenAI's CLIP and Facebooks Detr implemented on HuggingFace Transformers, if the similarity score is not so much, then please consider the prediction to be void.**")
|
|
|
1 |
+
import torch
|
2 |
import streamlit as st
|
3 |
import numpy as np
|
4 |
from PIL import Image
|
5 |
from transformers import CLIPProcessor, CLIPModel, YolosImageProcessor, YolosForObjectDetection
|
|
|
6 |
|
7 |
st.title("CLIP & CROP")
|
8 |
st.markdown("**Extract sections of images from your image by using OpenAI's CLIP and Facebooks Detr implemented on HuggingFace Transformers, if the similarity score is not so much, then please consider the prediction to be void.**")
|