An advanced Multimodal AI API built to detect fake news and misinformation by analyzing both textual content and visual context (images) simultaneously. This module serves as a core component of the TrueScope fact-checking system.
- Multimodal Synergy: Combines visual context (images) and textual claims to detect contradictions and sophisticated fake news.
- Fine-Tuned LLM: Utilizes a custom fine-tuned
gemma-3-4b-itbase model with LoRA adapters (PEFT) trained on rumor and fake news datasets. - Production-Ready API: High-performance, asynchronous REST API built with FastAPI.
- Containerized Deployment: Fully containerized using Docker for seamless deployment on cloud platforms like Hugging Face Spaces.
- Deep Learning: PyTorch, Hugging Face Transformers, PEFT (LoRA), Safetensors
- Backend: FastAPI, Uvicorn, Requests
- Image Processing: Pillow (PIL)
- Deployment: Docker
Analyzes a given image URL and news text to classify the content as real or fake.
- Method:
POST - Content-Type:
application/json
{
"image": "[https://upload.wikimedia.org/wikipedia/commons/4/46/Leonardo_Dicaprio_Cannes_2019.jpg](https://upload.wikimedia.org/wikipedia/commons/4/46/Leonardo_Dicaprio_Cannes_2019.jpg)",
"text": "Is this news REAL or FAKE? Content: Breaking: Leonardo DiCaprio has officially announced that he is quitting acting forever to become a full-time monk in Tibet.\nAnswer:"
}{
"verdict": "fake",
"confidenceScore": 98.24
}