Spaces:
Sleeping
Sleeping
Update image_detect.py
Browse files- image_detect.py +1 -1
image_detect.py
CHANGED
|
@@ -6,7 +6,7 @@ class ImageDeepfakeDetector:
|
|
| 6 |
def __init__(self, local_model_path="./local_clip_model"):
|
| 7 |
print("⚡ Loading Image AI Model...")
|
| 8 |
try:
|
| 9 |
-
self.model = CLIPModel.from_pretrained(
|
| 10 |
self.processor = CLIPProcessor.from_pretrained(local_model_path)
|
| 11 |
print("✅ Image Model Ready.")
|
| 12 |
except Exception as e:
|
|
|
|
| 6 |
def __init__(self, local_model_path="./local_clip_model"):
|
| 7 |
print("⚡ Loading Image AI Model...")
|
| 8 |
try:
|
| 9 |
+
self.model = CLIPModel.from_pretrained("openai/clip-vit-base-patch32")
|
| 10 |
self.processor = CLIPProcessor.from_pretrained(local_model_path)
|
| 11 |
print("✅ Image Model Ready.")
|
| 12 |
except Exception as e:
|