Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from transformers import pipeline
|
|
4 |
# Load models
|
5 |
emotion_classifier = pipeline("text-classification", model="j-hartmann/emotion-english-distilroberta-base", return_all_scores=True)
|
6 |
intent_classifier = pipeline("zero-shot-classification", model="facebook/bart-large-mnli")
|
7 |
-
text_generator = pipeline("text2text-generation", model="
|
8 |
|
9 |
# Intent categories
|
10 |
candidate_tasks = [
|
|
|
4 |
# Load models
|
5 |
emotion_classifier = pipeline("text-classification", model="j-hartmann/emotion-english-distilroberta-base", return_all_scores=True)
|
6 |
intent_classifier = pipeline("zero-shot-classification", model="facebook/bart-large-mnli")
|
7 |
+
text_generator = pipeline("text2text-generation", model="declare-lab/flan-alpaca-base")
|
8 |
|
9 |
# Intent categories
|
10 |
candidate_tasks = [
|