Hamza1702 commited on
Commit
3c58860
1 Parent(s): de62e0c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
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="PygmalionAI/pygmalion-6b")
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