Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,15 +9,9 @@ from transformers.pipelines import pipeline
|
|
9 |
|
10 |
classifier = pipeline("zero-shot-classification", model="knowledgator/comprehend_it-base")
|
11 |
|
12 |
-
candidate_labels = ['Lecture quality','Positive lecture quality','Negative lecture quality', 'lecturer teaching strength', 'assignments given', 'comments on lecturers teaching venue','Lecturers test and exam grading']
|
13 |
sequence_to_classify = "I hate Mr Thomas class, he doesn't teach well and he doesn't give assignments"
|
14 |
st.write(classifier(sequence_to_classify, candidate_labels, multi_label=True))
|
15 |
-
#{'labels': ['travel', 'exploration', 'dancing', 'cooking'],
|
16 |
-
# 'scores': [0.9945111274719238,
|
17 |
-
# 0.9383890628814697,
|
18 |
-
# 0.0057061901316046715,
|
19 |
-
# 0.0018193122232332826],
|
20 |
-
# 'sequence': 'one day I will see the world'}
|
21 |
|
22 |
|
23 |
|
|
|
9 |
|
10 |
classifier = pipeline("zero-shot-classification", model="knowledgator/comprehend_it-base")
|
11 |
|
12 |
+
candidate_labels = ['Lecture quality','Positive lecture quality','Negative lecture quality', 'lecturer teaching strength', 'assignments not given', 'assignments given',' positve comments on lecturers teaching venue','negative comments on lecturers teaching venue',' Lecturers test and exam grading']
|
13 |
sequence_to_classify = "I hate Mr Thomas class, he doesn't teach well and he doesn't give assignments"
|
14 |
st.write(classifier(sequence_to_classify, candidate_labels, multi_label=True))
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
|
17 |
|