EliTechHorizon commited on
Commit
8564ca3
·
1 Parent(s): fb518e2

More text changes

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -64,13 +64,13 @@ def process_input(email_body, history):
64
  if label == "Phishing":
65
  recommendation = """
66
  <div style='background-color: #ffe6e6; padding: 10px; border-left: 5px solid red; color: black;'>
67
- <span style='color: black;'>⚠️ <strong style='color: black;'>Recommendation:</strong> Do not click any links or download attachments. Report this message to your IT or security team immediately.</span>
68
  </div>
69
  """
70
  else:
71
  recommendation = """
72
  <div style='background-color: #e6ffe6; padding: 10px; border-left: 5px solid green; color: black;'>
73
- <span style='color: black;'>✅ <strong style='color: black;'>Recommendation:</strong> This email appears legitimate. Still, use caution when interacting with links or attachments.</span>
74
  </div>
75
  """
76
 
@@ -82,7 +82,7 @@ def process_input(email_body, history):
82
 
83
  # Interface with loading
84
  with gr.Blocks() as demo:
85
- gr.Markdown("## 🕵️‍♂️ Phishing Text Detector with Confidence Score and History")
86
  gr.Markdown("""
87
  ### Project Description
88
  This is an experimental tool designed by TechHorizon Consulting to help users quickly assess the likelihood that an email or text message may be a phishing attempt. By analyzing language patterns and known phishing indicators, this tool provides an AI-generated risk assessment to support safer decision-making.
@@ -105,7 +105,7 @@ with gr.Blocks() as demo:
105
  For any suspicious messages, **always follow your organization’s cybersecurity protocols** and consult a qualified IT or security professional.
106
  """)
107
 
108
- input_box = gr.Textbox(label="Body Text", placeholder="Paste your text here")
109
  detect_btn = gr.Button("Scan For Phishing")
110
 
111
  output_box = gr.HTML(
 
64
  if label == "Phishing":
65
  recommendation = """
66
  <div style='background-color: #ffe6e6; padding: 10px; border-left: 5px solid red; color: black;'>
67
+ <span style='color: black;'>⚠️ <strong style='color: black;'>Recommendation:</strong> This message appears to be phishing. Do not click any links, download attachments, or provide sensitive information. Report this message to your IT or security team, if applicable.</span>
68
  </div>
69
  """
70
  else:
71
  recommendation = """
72
  <div style='background-color: #e6ffe6; padding: 10px; border-left: 5px solid green; color: black;'>
73
+ <span style='color: black;'>✅ <strong style='color: black;'>Recommendation:</strong> This message appears legitimate. Still, use caution when interacting with links, attachments, or requests for sensitive information.</span>
74
  </div>
75
  """
76
 
 
82
 
83
  # Interface with loading
84
  with gr.Blocks() as demo:
85
+ gr.Markdown("## 🕵️‍♂️ Phishing Message, Detector with Confidence Score and History")
86
  gr.Markdown("""
87
  ### Project Description
88
  This is an experimental tool designed by TechHorizon Consulting to help users quickly assess the likelihood that an email or text message may be a phishing attempt. By analyzing language patterns and known phishing indicators, this tool provides an AI-generated risk assessment to support safer decision-making.
 
105
  For any suspicious messages, **always follow your organization’s cybersecurity protocols** and consult a qualified IT or security professional.
106
  """)
107
 
108
+ input_box = gr.Textbox(label="Paste Message Here", placeholder="Paste your text here")
109
  detect_btn = gr.Button("Scan For Phishing")
110
 
111
  output_box = gr.HTML(