gorkemgoknar commited on
Commit
393e361
1 Parent(s): 6b9d22e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -25,7 +25,7 @@ SPECIAL_TOKENS = ["<bos>", "<eos>", "<speaker1>", "<speaker2>", "<pad>"]
25
 
26
 
27
 
28
- def get_chat_response(name,history=[], input_txt = "Hello , what is your name?"):
29
 
30
  history.append(input_txt)
31
  history_e = [tokenizer.encode(e) for e in history]
@@ -83,6 +83,11 @@ def get_chat_response(name,history=[], input_txt = "Hello , what is your name?")
83
  | Brother | Allnut | Rose | Qui-Gon | Jar Jar
84
  '''
85
 
 
 
 
 
 
86
  #some selected ones are in for demo use
87
  personality_choices = ["Gandalf", "Riddick", "Macleod", "Morpheus", "Neo","Spock","Vader","Indy", "Ig-11","Threepio","Tony Stark","Batman","Vizzini"]
88
 
 
25
 
26
 
27
 
28
+ def get_chat_response(name, input_txt = "Hello , what is your name?",history=[]):
29
 
30
  history.append(input_txt)
31
  history_e = [tokenizer.encode(e) for e in history]
 
83
  | Brother | Allnut | Rose | Qui-Gon | Jar Jar
84
  '''
85
 
86
+ def greet(character,input_txt):
87
+ history = ["Hello","Hi"]
88
+ return get_chat_response(character,history=history,input_txt=input_txt)
89
+
90
+
91
  #some selected ones are in for demo use
92
  personality_choices = ["Gandalf", "Riddick", "Macleod", "Morpheus", "Neo","Spock","Vader","Indy", "Ig-11","Threepio","Tony Stark","Batman","Vizzini"]
93