Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,8 +9,7 @@ import tempfile
|
|
9 |
# Load models
|
10 |
clip_model = CLIPModel.from_pretrained("openai/clip-vit-base-patch32")
|
11 |
clip_processor = CLIPProcessor.from_pretrained("openai/clip-vit-base-patch32")
|
12 |
-
news_model = pipeline("text-classification", model="
|
13 |
-
|
14 |
# AI Image Detection
|
15 |
def analyze_image(image):
|
16 |
inputs = clip_processor(text=["a real photo", "an AI-generated image"], images=image, return_tensors="pt", padding=True)
|
|
|
9 |
# Load models
|
10 |
clip_model = CLIPModel.from_pretrained("openai/clip-vit-base-patch32")
|
11 |
clip_processor = CLIPProcessor.from_pretrained("openai/clip-vit-base-patch32")
|
12 |
+
news_model = pipeline("text-classification", model="mrm8488/bert-tiny-finetuned-fake-news")
|
|
|
13 |
# AI Image Detection
|
14 |
def analyze_image(image):
|
15 |
inputs = clip_processor(text=["a real photo", "an AI-generated image"], images=image, return_tensors="pt", padding=True)
|