Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ st.set_page_config(
|
|
27 |
|
28 |
# Main title and description
|
29 |
st.title("Deepfake Image Analyser")
|
30 |
-
st.markdown("
|
31 |
|
32 |
# Check for GPU availability
|
33 |
def check_gpu():
|
@@ -42,19 +42,31 @@ def check_gpu():
|
|
42 |
# Sidebar components
|
43 |
st.sidebar.title("About")
|
44 |
st.sidebar.markdown("""
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
-
|
57 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
""")
|
59 |
|
60 |
# Fixed values for temperature and max tokens
|
|
|
27 |
|
28 |
# Main title and description
|
29 |
st.title("Deepfake Image Analyser")
|
30 |
+
st.markdown("Analyse images for deepfake manipulation")
|
31 |
|
32 |
# Check for GPU availability
|
33 |
def check_gpu():
|
|
|
42 |
# Sidebar components
|
43 |
st.sidebar.title("About")
|
44 |
st.sidebar.markdown("""
|
45 |
+
### About Deepfake Analyzer
|
46 |
+
This tool performs multi-stage deepfake detection using advanced AI models:
|
47 |
+
|
48 |
+
**CLIP Model**: Initial Real/Fake classification with confidence score
|
49 |
+
**GradCAM**: Visualization of suspicious regions via heat map
|
50 |
+
**BLIP**: Structured description of image content
|
51 |
+
**Llama 3.2 Vision**: Detailed explanation of potential manipulation
|
52 |
+
|
53 |
+
### How to Use
|
54 |
+
|
55 |
+
**Load Models**:
|
56 |
+
- Begin with CLIP (required for basic detection)
|
57 |
+
- Add BLIP for enhanced descriptions
|
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
|