Update README.md
Browse files
README.md
CHANGED
|
@@ -12,20 +12,17 @@ This is a model for predicting issue resolution times based on various features.
|
|
| 12 |
## How to use
|
| 13 |
|
| 14 |
```python
|
| 15 |
-
|
| 16 |
-
from
|
| 17 |
|
| 18 |
-
|
| 19 |
-
model =
|
| 20 |
-
|
| 21 |
-
# Prepare your input data (example)
|
| 22 |
-
# X = ...
|
| 23 |
|
| 24 |
# Predict
|
| 25 |
predictions = model.predict(X)
|
| 26 |
Model Details
|
| 27 |
```
|
| 28 |
-
Framework:
|
| 29 |
Input features: Text and numerical features
|
| 30 |
Output: Duration category (short, medium, long)
|
| 31 |
Performance
|
|
|
|
| 12 |
## How to use
|
| 13 |
|
| 14 |
```python
|
| 15 |
+
# Load model directly
|
| 16 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 17 |
|
| 18 |
+
tokenizer = AutoTokenizer.from_pretrained("xeroISB/ServiceNowMTTR")
|
| 19 |
+
model = AutoModelForSequenceClassification.from_pretrained("xeroISB/ServiceNowMTTR")
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
# Predict
|
| 22 |
predictions = model.predict(X)
|
| 23 |
Model Details
|
| 24 |
```
|
| 25 |
+
Framework: Transformers / Bert
|
| 26 |
Input features: Text and numerical features
|
| 27 |
Output: Duration category (short, medium, long)
|
| 28 |
Performance
|