Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ title = "Have Fun With ChubbyBot"
|
|
5 |
description = """
|
6 |
<p>
|
7 |
<center>
|
8 |
-
The bot is trained on blended_skill_talk dataset using facebook/blenderbot-
|
9 |
<img src="https://huggingface.co/spaces/EXFINITE/BlenderBot-UI/resolve/main/img/cover.png" alt="rick" width="250"/>
|
10 |
</center>
|
11 |
</p>
|
@@ -15,8 +15,8 @@ article = "<p style='text-align: center'><a href='https://arxiv.org/abs/1907.066
|
|
15 |
import torch
|
16 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, BlenderbotForConditionalGeneration, BlenderbotForCausalLM, BlenderbotTokenizer
|
17 |
|
18 |
-
tokenizer = BlenderbotTokenizer.from_pretrained("facebook/blenderbot-
|
19 |
-
model = BlenderbotForConditionalGeneration.from_pretrained("facebook/blenderbot-
|
20 |
|
21 |
def predict(input, history=[]):
|
22 |
# tokenize the new input sentence
|
|
|
5 |
description = """
|
6 |
<p>
|
7 |
<center>
|
8 |
+
The bot is trained on blended_skill_talk dataset using facebook/blenderbot-1B-distill.
|
9 |
<img src="https://huggingface.co/spaces/EXFINITE/BlenderBot-UI/resolve/main/img/cover.png" alt="rick" width="250"/>
|
10 |
</center>
|
11 |
</p>
|
|
|
15 |
import torch
|
16 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, BlenderbotForConditionalGeneration, BlenderbotForCausalLM, BlenderbotTokenizer
|
17 |
|
18 |
+
tokenizer = BlenderbotTokenizer.from_pretrained("facebook/blenderbot-1B-distill")
|
19 |
+
model = BlenderbotForConditionalGeneration.from_pretrained("facebook/blenderbot-1B-distill",add_cross_attention=False)
|
20 |
|
21 |
def predict(input, history=[]):
|
22 |
# tokenize the new input sentence
|