Spaces:
Sleeping
Sleeping
Model V0.2
Browse files- app.py +2 -2
- my_model/config.json +6 -2
- my_model/model.safetensors +2 -2
app.py
CHANGED
|
@@ -45,8 +45,8 @@ demo = gr.Interface(
|
|
| 45 |
fn=predict,
|
| 46 |
inputs=gr.Textbox(lines=3, placeholder="Enter text here..."),
|
| 47 |
outputs=gr.Label(),
|
| 48 |
-
title="
|
| 49 |
-
description="Predicts
|
| 50 |
)
|
| 51 |
|
| 52 |
if __name__ == "__main__":
|
|
|
|
| 45 |
fn=predict,
|
| 46 |
inputs=gr.Textbox(lines=3, placeholder="Enter text here..."),
|
| 47 |
outputs=gr.Label(),
|
| 48 |
+
title="Text - Emotion Classifier",
|
| 49 |
+
description="Predicts emotion category based on text input."
|
| 50 |
)
|
| 51 |
|
| 52 |
if __name__ == "__main__":
|
my_model/config.json
CHANGED
|
@@ -14,7 +14,9 @@
|
|
| 14 |
"3": "LABEL_3",
|
| 15 |
"4": "LABEL_4",
|
| 16 |
"5": "LABEL_5",
|
| 17 |
-
"6": "LABEL_6"
|
|
|
|
|
|
|
| 18 |
},
|
| 19 |
"initializer_range": 0.02,
|
| 20 |
"label2id": {
|
|
@@ -24,7 +26,9 @@
|
|
| 24 |
"LABEL_3": 3,
|
| 25 |
"LABEL_4": 4,
|
| 26 |
"LABEL_5": 5,
|
| 27 |
-
"LABEL_6": 6
|
|
|
|
|
|
|
| 28 |
},
|
| 29 |
"max_position_embeddings": 512,
|
| 30 |
"model_type": "distilbert",
|
|
|
|
| 14 |
"3": "LABEL_3",
|
| 15 |
"4": "LABEL_4",
|
| 16 |
"5": "LABEL_5",
|
| 17 |
+
"6": "LABEL_6",
|
| 18 |
+
"7": "LABEL_7",
|
| 19 |
+
"8": "LABEL_8"
|
| 20 |
},
|
| 21 |
"initializer_range": 0.02,
|
| 22 |
"label2id": {
|
|
|
|
| 26 |
"LABEL_3": 3,
|
| 27 |
"LABEL_4": 4,
|
| 28 |
"LABEL_5": 5,
|
| 29 |
+
"LABEL_6": 6,
|
| 30 |
+
"LABEL_7": 7,
|
| 31 |
+
"LABEL_8": 8
|
| 32 |
},
|
| 33 |
"max_position_embeddings": 512,
|
| 34 |
"model_type": "distilbert",
|
my_model/model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:abef957581844df0de6c3969ae39c9a0de7c1a2b33fd938c52342714a5d97c82
|
| 3 |
+
size 267854100
|