Interface improvements
Browse files- W&B Chart 20_05_2025 00_42_07.png +0 -3
- W&B Chart 20_05_2025 00_42_20.png +0 -3
- demo.py +13 -6
W&B Chart 20_05_2025 00_42_07.png
DELETED
Git LFS Details
|
W&B Chart 20_05_2025 00_42_20.png
DELETED
Git LFS Details
|
demo.py
CHANGED
|
@@ -63,10 +63,17 @@ def find_category(
|
|
| 63 |
return y_pred
|
| 64 |
|
| 65 |
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
|
| 72 |
-
demo.launch()
|
|
|
|
| 63 |
return y_pred
|
| 64 |
|
| 65 |
|
| 66 |
+
with gr.Blocks() as demo:
|
| 67 |
+
gr.Markdown(
|
| 68 |
+
"<h1 style='text-align: center;'>CUSTOM MODEL BASED ON BERT BASE TO CLASSIFY NEWS ARTICLES</h1>"
|
| 69 |
+
)
|
| 70 |
+
gr.Markdown(
|
| 71 |
+
"<h2 style='text-align: center;'>Model loss during training and eval time</h2>"
|
| 72 |
+
)
|
| 73 |
+
|
| 74 |
+
with gr.Row():
|
| 75 |
+
gr.Image(value="wandb_chart_train.png", label="Training Loss")
|
| 76 |
+
gr.Image(value="wandb_chart_eval.png", label="Eval Loss")
|
| 77 |
+
gr.Interface(fn=find_category, inputs=["text"], outputs=["text"], live=False)
|
| 78 |
|
| 79 |
+
demo.launch(share=True)
|