It seems (from huggingface github repo) that the “conversational” task is deprecated now, I wonder why it has been used in this new course. Or is it going to be reintroduced?
Yes, this is true and pretty much makes the videos obsolete. To work with it at least in a similar way to the NLP video something like this will work:
pipe = pipeline(‘text2text-generation’, model=“facebook/blenderbot-400M-distill”)
response = pipe(“Tell me a bit about the endoplasmic reticulum”)
print(f"Bot: {response[0][‘generated_text’]}")
Bot: Well, it’s basically a way of teaching students how to read, write, and communicate.
(not a great answer lol)
pipe = pipeline(“text2text-generation”, model=“facebook/blenderbot-400M-distill”)
user_message = “”"
What are some fun activities I can do in the winter?
“”"
chat_history = user_message
outputs = pipe(
chat_history,
max_new_tokens=512,
)
chat_history += outputs[0][“generated_text”]
print(chat_history)
chat_history += “I love beach. I What else do you recommend?”
outputs = pipe(
chat_history,
max_new_tokens=512,
)
chat_history += outputs[0][“generated_text”]
print(chat_history)
The issue is still outstanding. The very first section with code of the course is obsolete. It seems there is no maintenance of the course, which is OK, as long as it is for free.
is the code not working on course provided lab too?? can you mention the lesson number?