ayush-kale-96 commited on
Commit
7a15384
Β·
verified Β·
1 Parent(s): 075f4aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -2
app.py CHANGED
@@ -80,11 +80,20 @@ def format_results(results, media_type):
80
  # Build HTML output
81
  html = f"""
82
  <div style="font-family: Arial, sans-serif;">
83
- <h2>πŸ“Š Analysis Results</h2>
84
 
85
- <div style="background: {'#fee'; border-left: 4px solid #f00;' if is_fake else '#efe; border-left: 4px solid #0f0;'} padding: 15px; margin: 10px 0;">
 
 
 
 
 
 
 
86
  <h3>{'πŸ”΄ LIKELY DEEPFAKE/AI-GENERATED' if is_fake else '🟒 LIKELY AUTHENTIC'}</h3>
87
  </div>
 
 
88
 
89
  <div style="background: #f5f5f5; padding: 15px; margin: 10px 0; border-radius: 5px;">
90
  <h3>πŸ“ˆ Detection Metrics</h3>
 
80
  # Build HTML output
81
  html = f"""
82
  <div style="font-family: Arial, sans-serif;">
83
+ <h2>πŸ“Š Analysis Results</h2>"""
84
 
85
+ style = (
86
+ "background-color: #fee; border-left: 4px solid #f00;"
87
+ if is_fake else
88
+ "background-color: #efe; border-left: 4px solid #0f0;"
89
+ )
90
+
91
+ html = f"""
92
+ <div style="{style} padding: 15px; margin: 10px 0;">
93
  <h3>{'πŸ”΄ LIKELY DEEPFAKE/AI-GENERATED' if is_fake else '🟒 LIKELY AUTHENTIC'}</h3>
94
  </div>
95
+ """
96
+
97
 
98
  <div style="background: #f5f5f5; padding: 15px; margin: 10px 0; border-radius: 5px;">
99
  <h3>πŸ“ˆ Detection Metrics</h3>