saakshigupta commited on
Commit
6f4b592
·
verified ·
1 Parent(s): da0b0c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -25
app.py CHANGED
@@ -42,31 +42,19 @@ 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
 
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