Update app.py
Browse files
app.py
CHANGED
|
@@ -7,9 +7,10 @@ title = "🤖AI ChatBot"
|
|
| 7 |
description = "Building open-domain chatbots is a challenging area for machine learning research."
|
| 8 |
examples = [["How are you?"]]
|
| 9 |
|
|
|
|
| 10 |
|
| 11 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
| 12 |
-
model = AutoModelForCausalLM.from_pretrained("
|
| 13 |
|
| 14 |
|
| 15 |
def predict(input, history=[]):
|
|
|
|
| 7 |
description = "Building open-domain chatbots is a challenging area for machine learning research."
|
| 8 |
examples = [["How are you?"]]
|
| 9 |
|
| 10 |
+
pipe = pipeline("conversational", model="PygmalionAI/pygmalion-6b")
|
| 11 |
|
| 12 |
+
tokenizer = AutoTokenizer.from_pretrained("PygmalionAI/pygmalion-6b")
|
| 13 |
+
model = AutoModelForCausalLM.from_pretrained("PygmalionAI/pygmalion-6b")
|
| 14 |
|
| 15 |
|
| 16 |
def predict(input, history=[]):
|