abhi099k commited on
Commit
bd87524
·
verified ·
1 Parent(s): 1b8ccd9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -25,13 +25,13 @@ def analyze_text_interface(text, threshold):
25
  if "error" in result:
26
  return f"❌ Error: {result['error']}", ""
27
 
28
- # Overall result - simplified
29
  overall_html = f"""
30
- <div style="padding: 20px; border-radius: 10px; background: #f8f9fa; border: 1px solid #dee2e6;">
31
- <h2>Analysis Result: {result['overall_type']}</h2>
32
- <p><strong>Confidence:</strong> {result['overall_confidence']:.2%}</p>
33
- <p><strong>AI Probability Score:</strong> {result['overall_score']:.3f}</p>
34
- <p><strong>AI Artifacts Detected:</strong> {'Yes' if result['has_artifacts'] else 'No'}</p>
35
  </div>
36
  """
37
 
 
25
  if "error" in result:
26
  return f"❌ Error: {result['error']}", ""
27
 
28
+ # Overall result - with proper text colors for dark background
29
  overall_html = f"""
30
+ <div style="padding: 20px; border-radius: 10px; background: #2d3748; border: 1px solid #4a5568; color: white;">
31
+ <h2 style="color: white; margin-top: 0;">Analysis Result: {result['overall_type']}</h2>
32
+ <p style="color: white;"><strong>Confidence:</strong> {result['overall_confidence']:.2%}</p>
33
+ <p style="color: white;"><strong>AI Probability Score:</strong> {result['overall_score']:.3f}</p>
34
+ <p style="color: white;"><strong>AI Artifacts Detected:</strong> {'Yes' if result['has_artifacts'] else 'No'}</p>
35
  </div>
36
  """
37