leygit commited on
Commit
b995567
·
verified ·
1 Parent(s): e5ccfc2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -156,7 +156,7 @@ def generate_performance_metrics():
156
  def create_interface():
157
  performance_metrics = generate_performance_metrics()
158
  with gr.Blocks() as interface:
159
- with gr.Tab("Demo")
160
  gr.Markdown("Spam and Phishing Email Detection")
161
 
162
  # Email Text Input
@@ -183,7 +183,7 @@ def create_interface():
183
  outputs=[result_output, confidence_output]
184
  )
185
 
186
- with gr.Tab("Analysis")
187
  gr.Markdown("## 📊 Model Performance Analytics")
188
  with gr.Row():
189
  gr.Textbox(value=performance_metrics["accuracy"], label="Accuracy", interactive=False)
@@ -191,7 +191,8 @@ def create_interface():
191
  gr.Textbox(value=performance_metrics["recall"], label="Recall", interactive=False)
192
  gr.Textbox(value=performance_metrics["f1_score"], label="F1 Score", interactive=False)
193
 
194
- with gr.Tab("Background")
 
195
 
196
  return interface
197
 
 
156
  def create_interface():
157
  performance_metrics = generate_performance_metrics()
158
  with gr.Blocks() as interface:
159
+ with gr.Tab("Demo"):
160
  gr.Markdown("Spam and Phishing Email Detection")
161
 
162
  # Email Text Input
 
183
  outputs=[result_output, confidence_output]
184
  )
185
 
186
+ with gr.Tab("Analysis"):
187
  gr.Markdown("## 📊 Model Performance Analytics")
188
  with gr.Row():
189
  gr.Textbox(value=performance_metrics["accuracy"], label="Accuracy", interactive=False)
 
191
  gr.Textbox(value=performance_metrics["recall"], label="Recall", interactive=False)
192
  gr.Textbox(value=performance_metrics["f1_score"], label="F1 Score", interactive=False)
193
 
194
+ with gr.Tab("Background"):
195
+ gr.Markdown(" ## Credits and Reference ")
196
 
197
  return interface
198