leygit commited on
Commit
c0f197d
·
verified ·
1 Parent(s): c87ed47

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -166,7 +166,7 @@ def create_interface():
166
  performance_metrics = generate_performance_metrics()
167
  with gr.Blocks() as interface:
168
  with gr.Tab(" 📨 Demo"):
169
- gr.Markdown("📧🔍 Spam and Phishing Email Detection")
170
  gr.Markdown(
171
  """
172
  Welcome to the Spam and Phishing Email Detection Demo! This tool leverages DistilBERT, a lightweight yet powerful transformer model, to classify emails as ham (legitimate), spam, or phishing based on their content.
@@ -224,11 +224,11 @@ def create_interface():
224
  with gr.Column():
225
  gr.Markdown(
226
  """
227
- ### Label Definitions
228
  - Spam: Unwanted or potentially harmful emails detected by the system.
229
  - Ham: Legitimate and safe emails.
230
 
231
- ### Evaluation Metrics
232
  - Accuracy: Measures the percentage of correctly classified emails.
233
  - Precision: Out of all emails classified as spam, how many were actually spam?
234
  - Recall: Out of all actual spam emails, how many were identified correctly?
 
166
  performance_metrics = generate_performance_metrics()
167
  with gr.Blocks() as interface:
168
  with gr.Tab(" 📨 Demo"):
169
+ gr.Markdown(" # 📧🔍 Spam and Phishing Email Detection")
170
  gr.Markdown(
171
  """
172
  Welcome to the Spam and Phishing Email Detection Demo! This tool leverages DistilBERT, a lightweight yet powerful transformer model, to classify emails as ham (legitimate), spam, or phishing based on their content.
 
224
  with gr.Column():
225
  gr.Markdown(
226
  """
227
+ ## Label Definitions
228
  - Spam: Unwanted or potentially harmful emails detected by the system.
229
  - Ham: Legitimate and safe emails.
230
 
231
+ ## Evaluation Metrics
232
  - Accuracy: Measures the percentage of correctly classified emails.
233
  - Precision: Out of all emails classified as spam, how many were actually spam?
234
  - Recall: Out of all actual spam emails, how many were identified correctly?