Spaces:
Build error
Build error
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>
|