SonyaHas commited on
Commit
9e3aebf
·
verified ·
1 Parent(s): e018051

fixed error

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,13 +3,13 @@ import random
3
  # import lines go at the top! Any libraries I need to import go up here^^
4
 
5
 
6
- def yes_or_no(message, history):
7
  return random.choice(['Yes', 'No', 'Of course', 'Try again', 'No, better luck next time!', "I think not", "Absolutely, yes!", ])
8
  # def echo(message, history):
9
  # return message
10
 
11
  print("Hello World")
12
- chatbot = gr.ChatInterface(function_name, title="Your Bestie!", type="I will serve you!")
13
  # defining my chatbot so that the user can interact and see their conversation history and send new messages
14
 
15
 
 
3
  # import lines go at the top! Any libraries I need to import go up here^^
4
 
5
 
6
+ def magic_ball(message, history):
7
  return random.choice(['Yes', 'No', 'Of course', 'Try again', 'No, better luck next time!', "I think not", "Absolutely, yes!", ])
8
  # def echo(message, history):
9
  # return message
10
 
11
  print("Hello World")
12
+ chatbot = gr.ChatInterface(magic_ball, title="Your Bestie!", type="I will serve you!")
13
  # defining my chatbot so that the user can interact and see their conversation history and send new messages
14
 
15