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