Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,8 @@ import torch
|
|
5 |
|
6 |
|
7 |
# Load your model
|
8 |
-
classifier = pipeline("text-classification", model="YonasMersha/fine-tuned-distilbert-emotion")
|
|
|
9 |
|
10 |
# Define the prediction function
|
11 |
def classify(text):
|
|
|
5 |
|
6 |
|
7 |
# Load your model
|
8 |
+
classifier = pipeline("text-classification", model="YonasMersha/fine-tuned-distilbert-emotion", tokenizer='YonasMersha/fine_tuned_distilbert_emotion')
|
9 |
+
|
10 |
|
11 |
# Define the prediction function
|
12 |
def classify(text):
|