gorkemgoknar commited on
Commit
9f76e59
1 Parent(s): 148edac

some cleanup

Browse files
Files changed (1) hide show
  1. app.py +12 -8
app.py CHANGED
@@ -317,21 +317,28 @@ async def add_text(char1,char2,runs,context,initial_question,history):
317
 
318
 
319
  history=None
320
- #some selected ones are in for demo use
321
  CHARACTER_1_CHOICES = ["Gandalf","Gerald", "Morpheus", "Neo","Kirk","Spock","Vader", "Ig-11","Tony Stark","Batman"]
322
  CHARACTER_2_CHOICES = ["Gandalf","Gerald", "Morpheus", "Neo","Kirk","Spock","Vader", "Ig-11","Tony Stark","Batman"]
 
 
323
  CONTEXT_CHOICES = ["talks friendly",
324
  "insults",
325
- "diss in rap",
326
- "on a cruise ship going to Mars from Earth",
327
- "blames on something",
328
  "tries to save the world",
329
  "talks agressively",
330
  "argues over if a movie is good"]
331
 
332
  EXAMPLE_INITIALS=["I challenge you to battle of words!",
333
  "how much would a woodchuck chuck if a woodchuck could chuck wood?",
334
- "The world is changing.","What do you think about AI?","Are you real?","I went to the supermarket yesterday.", "Who are you?", "I am richer than you!"]
 
 
 
 
 
335
 
336
  RUN_COUNT = [2,3,4]
337
 
@@ -339,9 +346,6 @@ title = "Metayazar - Movie Chatbot Llama Finetuned"
339
  description = "Chat with your favorite movie characters. Finetuned with Llama2 "
340
  article = "<p style='text-align: center'><a href='https://www.linkedin.com/pulse/ai-goes-job-interview-g%C3%B6rkem-g%C3%B6knar/' target='_blank'>AI Goes to Job Interview</a> | <a href='https://www.metayazar.com/' target='_blank'>Metayazar AI Writer</a> |<a href='https://www.linkedin.com/in/goknar/' target='_blank'>Görkem Göknar</a></p>"
341
 
342
- history = {"character": "None", "message_history" : [] }
343
-
344
-
345
 
346
  def change_run_count(run_count):
347
  print("update run count:",run_count)
 
317
 
318
 
319
  history=None
320
+ #some selected ones are in for demo use (there are more, get a copy and try it , just do not expect much with this fast finetuned model)
321
  CHARACTER_1_CHOICES = ["Gandalf","Gerald", "Morpheus", "Neo","Kirk","Spock","Vader", "Ig-11","Tony Stark","Batman"]
322
  CHARACTER_2_CHOICES = ["Gandalf","Gerald", "Morpheus", "Neo","Kirk","Spock","Vader", "Ig-11","Tony Stark","Batman"]
323
+
324
+
325
  CONTEXT_CHOICES = ["talks friendly",
326
  "insults",
327
+ "diss in rap",
328
+ "on a cruise ship going to Mars from Earth",
329
+ "blames on something",
330
  "tries to save the world",
331
  "talks agressively",
332
  "argues over if a movie is good"]
333
 
334
  EXAMPLE_INITIALS=["I challenge you to battle of words!",
335
  "how much would a woodchuck chuck if a woodchuck could chuck wood?",
336
+ "The world is changing.",
337
+ "What do you think about AI?",
338
+ "Are you real?",
339
+ "I went to the supermarket yesterday.",
340
+ "Who are you?",
341
+ "I am richer than you!"]
342
 
343
  RUN_COUNT = [2,3,4]
344
 
 
346
  description = "Chat with your favorite movie characters. Finetuned with Llama2 "
347
  article = "<p style='text-align: center'><a href='https://www.linkedin.com/pulse/ai-goes-job-interview-g%C3%B6rkem-g%C3%B6knar/' target='_blank'>AI Goes to Job Interview</a> | <a href='https://www.metayazar.com/' target='_blank'>Metayazar AI Writer</a> |<a href='https://www.linkedin.com/in/goknar/' target='_blank'>Görkem Göknar</a></p>"
348
 
 
 
 
349
 
350
  def change_run_count(run_count):
351
  print("update run count:",run_count)