Spaces:
Runtime error
Runtime error
Update off_topic.py
Browse files- off_topic.py +0 -3
off_topic.py
CHANGED
|
@@ -13,9 +13,6 @@ import imagehash
|
|
| 13 |
from transformers import CLIPModel, CLIPProcessor
|
| 14 |
from PIL import Image
|
| 15 |
|
| 16 |
-
import nest_asyncio
|
| 17 |
-
nest_asyncio.apply()
|
| 18 |
-
|
| 19 |
|
| 20 |
class OffTopicDetector:
|
| 21 |
def __init__(self, model_id: str, device: Optional[str] = None, image_size: str = "E"):
|
|
|
|
| 13 |
from transformers import CLIPModel, CLIPProcessor
|
| 14 |
from PIL import Image
|
| 15 |
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
class OffTopicDetector:
|
| 18 |
def __init__(self, model_id: str, device: Optional[str] = None, image_size: str = "E"):
|