jrmd commited on
Commit
0760ef6
·
1 Parent(s): 9b2ad8f

Addition of Confusion Matrix

Browse files
Files changed (2) hide show
  1. CM_BBC_NEWS_DS.png +3 -0
  2. demo.py +12 -1
CM_BBC_NEWS_DS.png ADDED

Git LFS Details

  • SHA256: cbc5596239da3725a93ea806e29b611eab8096d21809b6705bac1b0e91dcad2d
  • Pointer size: 130 Bytes
  • Size of remote file: 33.8 kB
demo.py CHANGED
@@ -68,6 +68,9 @@ with gr.Blocks() as demo:
68
  gr.Markdown(
69
  "<h1 style='text-align: center;'>CUSTOM MODEL BASED ON BERT BASE TO CLASSIFY NEWS ARTICLES</h1>"
70
  )
 
 
 
71
  gr.Markdown(
72
  "<h2 style='text-align: center;'>Model loss during training and eval time</h2>"
73
  )
@@ -76,6 +79,14 @@ with gr.Blocks() as demo:
76
  gr.Image(value="wandb_chart_train.png", label="Training Loss")
77
  gr.Image(value="wandb_chart_eval.png", label="Eval Loss")
78
 
79
- gr.Interface(fn=find_category, inputs=["text"], outputs=["text"], live=False)
 
 
 
 
 
 
 
 
80
 
81
  demo.launch(share=True)
 
68
  gr.Markdown(
69
  "<h1 style='text-align: center;'>CUSTOM MODEL BASED ON BERT BASE TO CLASSIFY NEWS ARTICLES</h1>"
70
  )
71
+
72
+ gr.Interface(fn=find_category, inputs=["text"], outputs=["text"], live=False)
73
+
74
  gr.Markdown(
75
  "<h2 style='text-align: center;'>Model loss during training and eval time</h2>"
76
  )
 
79
  gr.Image(value="wandb_chart_train.png", label="Training Loss")
80
  gr.Image(value="wandb_chart_eval.png", label="Eval Loss")
81
 
82
+ gr.Markdown(
83
+ "<h2 style='text-align: center;'>Confusion matrix obtained from model evaluation on BBC News dataset</h2>"
84
+ )
85
+
86
+ with gr.Row():
87
+ gr.Image(
88
+ value="CM_BBC_NEWS_DS.png", label="Confusion Matrix from model evaluation"
89
+ )
90
+
91
 
92
  demo.launch(share=True)