Addition of Confusion Matrix
Browse files- CM_BBC_NEWS_DS.png +3 -0
- demo.py +12 -1
CM_BBC_NEWS_DS.png
ADDED
|
Git LFS Details
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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)
|