gorkemgoknar commited on
Commit
68c73ac
1 Parent(s): fba1393

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +31 -3
app.py CHANGED
@@ -36,12 +36,40 @@ def get_chat_response(name, input_txt = "Hello , what is your name?"):
36
  out_str = tokenizer.decode(chat_history_ids[:, bot_input_ids.shape[-1]:][0], skip_special_tokens=True)
37
  return out_str
38
 
39
-
40
- personality_choices = ["Gandalf", "Riddick", "Macleod", "Morpheus", "Neo","Spock","Vader","Indy"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
 
42
  examples= ["Gandalf", "What is your name?"]
43
 
44
-
45
  interface = gr.Interface(fn=get_chat_response, inputs=[gr.inputs.Dropdown(personality_choices) ,"text"], outputs="text")
46
 
47
 
 
36
  out_str = tokenizer.decode(chat_history_ids[:, bot_input_ids.shape[-1]:][0], skip_special_tokens=True)
37
  return out_str
38
 
39
+ ##you can use anyone from below
40
+ '''
41
+ | Macleod | Moran | Brenda | Ramirez | Peter Parker | Quentin Beck | Andy
42
+ | Red | Norton | Willard | Chief | Chef | Kilgore | Kurtz | Westley | Buttercup
43
+ | Vizzini | Fezzik | Inigo | Man In Black | Taylor | Zira | Zaius | Cornelius
44
+ | Bud | Lindsey | Hippy | Erin | Ed | George | Donna | Trinity | Agent Smith
45
+ | Morpheus | Neo | Tank | Meryl | Truman | Marlon | Christof | Stromboli | Bumstead
46
+ | Schreber | Walker | Korben | Cornelius | Loc Rhod | Anakin | Obi-Wan | Palpatine
47
+ | Padme | Superman | Luthor | Dude | Walter | Donny | Maude | General | Starkiller
48
+ | Indiana | Willie | Short Round | John | Sarah | Terminator | Miller | Sarge | Reiben
49
+ | Jackson | Upham | Chuckie | Will | Lambeau | Sean | Skylar | Saavik | Spock
50
+ | Kirk | Bones | Khan | Kirk | Spock | Sybok | Scotty | Bourne | Pamela | Abbott
51
+ | Nicky | Marshall | Korshunov | Troy | Vig | Archie Gates | Doc | Interrogator
52
+ | Ellie | Ted | Peter | Drumlin | Joss | Macready | Childs | Nicholas | Conrad
53
+ | Feingold | Christine | Adam | Barbara | Delia | Lydia | Cathy | Charles | Otho
54
+ | Schaefer | Han | Luke | Leia | Threepio | Vader | Yoda | Lando | Elaine | Striker
55
+ | Dr. Rumack | Kramer | David | Saavik | Kirk | Kruge | Holden | Deckard | Rachael
56
+ | Batty | Sebastian | Sam | Frodo | Pippin | Gandalf | Kay | Edwards | Laurel
57
+ | Edgar | Zed | Jay | Malloy | Plissken | Steve Rogers | Tony Stark | Scott Lang
58
+ | Bruce Banner | Bruce | Edward | Two-Face | Batman | Chase | Alfred | Dick
59
+ | Riddler | Din Djarin | Greef Karga | Kuiil | Ig-11 | Cara Dune | Peli Motto
60
+ | Toro Calican | Ripley | Meredith | Dickie | Marge | Peter | Lambert | Kane
61
+ | Dallas | Ripley | Ash | Parker | Threepio | Luke | Leia | Ben | Han | Common Bob
62
+ | Common Alice | Jack | Tyler | Marla | Dana | Stantz | Venkman | Spengler | Louis
63
+ | Fry | Johns | Riddick | Kirk | Decker | Spock | "Ilia | Indy | Belloq | Marion
64
+ | Brother | Allnut | Rose | Qui-Gon | Jar Jar
65
+ '''
66
+
67
+ #some selected ones are in for demo use
68
+ personality_choices = ["Gandalf", "Riddick", "Macleod", "Morpheus", "Neo","Spock","Vader","Indy", "Ig-11","Threepio","Tony Stark","Batman","Vizzini"]
69
 
70
  examples= ["Gandalf", "What is your name?"]
71
 
72
+ #History not implemented in this demo, use metayazar.com/chatbot for a movie and character dropdown chat interface
73
  interface = gr.Interface(fn=get_chat_response, inputs=[gr.inputs.Dropdown(personality_choices) ,"text"], outputs="text")
74
 
75