Update app.py
Browse files
app.py
CHANGED
|
@@ -42,31 +42,19 @@ def check_gpu():
|
|
| 42 |
# Sidebar components
|
| 43 |
st.sidebar.title("About")
|
| 44 |
st.sidebar.markdown("""
|
| 45 |
-
### About
|
| 46 |
-
This tool
|
| 47 |
-
|
| 48 |
-
**
|
| 49 |
-
**
|
| 50 |
-
**
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
**
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
- Add Vision LLM for in-depth analysis
|
| 59 |
-
|
| 60 |
-
**Analyze Images**:
|
| 61 |
-
- Upload an image using the file selector
|
| 62 |
-
- Examine the GradCAM heat map highlighting suspicious areas
|
| 63 |
-
|
| 64 |
-
**Get Insights**:
|
| 65 |
-
- Use preset questions or ask your own
|
| 66 |
-
- Review either technical or simple explanations
|
| 67 |
-
|
| 68 |
-
---
|
| 69 |
-
*Note: GPU recommended for faster processing*
|
| 70 |
""")
|
| 71 |
|
| 72 |
# Fixed values for temperature and max tokens
|
|
|
|
| 42 |
# Sidebar components
|
| 43 |
st.sidebar.title("About")
|
| 44 |
st.sidebar.markdown("""
|
| 45 |
+
### About
|
| 46 |
+
This tool detects deepfakes using four AI models:
|
| 47 |
+
- **CLIP**: Initial Real/Fake classification
|
| 48 |
+
- **GradCAM**: Highlights suspicious regions
|
| 49 |
+
- **BLIP**: Describes image content
|
| 50 |
+
- **Llama 3.2**: Explains potential manipulations
|
| 51 |
+
|
| 52 |
+
### Quick Start
|
| 53 |
+
1. **Load Models** - Start with CLIP, add others as needed
|
| 54 |
+
2. **Upload Image** - View classification and heat map
|
| 55 |
+
3. **Analyze** - Get explanations and ask questions
|
| 56 |
+
|
| 57 |
+
*GPU recommended for better performance*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
""")
|
| 59 |
|
| 60 |
# Fixed values for temperature and max tokens
|