Update app.py
Browse files
app.py
CHANGED
@@ -35,15 +35,10 @@ from transformers import Conversation
|
|
35 |
|
36 |
@st.cache_resource
|
37 |
def load_response_pipeline():
|
38 |
-
#
|
39 |
return pipeline(
|
40 |
"conversational",
|
41 |
model="facebook/blenderbot-400M-distill"
|
42 |
-
):
|
43 |
-
# High-level helper using BlenderBot 400M Distill
|
44 |
-
return pipeline(
|
45 |
-
"text2text-generation",
|
46 |
-
model="facebook/blenderbot-400M-distill"
|
47 |
)
|
48 |
|
49 |
LABEL_MAP = {
|
|
|
35 |
|
36 |
@st.cache_resource
|
37 |
def load_response_pipeline():
|
38 |
+
# High-level conversational helper using BlenderBot 400M Distill
|
39 |
return pipeline(
|
40 |
"conversational",
|
41 |
model="facebook/blenderbot-400M-distill"
|
|
|
|
|
|
|
|
|
|
|
42 |
)
|
43 |
|
44 |
LABEL_MAP = {
|