UserPotato12397 commited on
Commit
a283d11
·
verified ·
1 Parent(s): 6ece723

Made 8 Ball Answers

Browse files
Files changed (1) hide show
  1. app.py +23 -2
app.py CHANGED
@@ -2,10 +2,31 @@ import gradio as gr
2
  import random
3
 
4
  def random_message(message, history):
5
- choices = ["yes","no"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  chat_answer = random.choice(choices)
7
  return chat_answer
8
 
9
- chatbot = gr.ChatInterface(random_message, type = "messages", title = "Chatbot for KWK", placeholder="<strong>Your Personal Yes-Man</strong><br>Ask Me Anything")
10
 
11
  chatbot.launch()
 
2
  import random
3
 
4
  def random_message(message, history):
5
+ choices = [
6
+ "It is certain",
7
+ "It is decidedly so",
8
+ "Without a doubt",
9
+ "Yes definitely",
10
+ "You may rely on it",
11
+ "As I see it, yes",
12
+ "Most likely",
13
+ "Outlook good",
14
+ "Yes",
15
+ "Signs point to yes",
16
+ "Reply hazy, try again",
17
+ "Ask again later",
18
+ "Better not tell you now",
19
+ "Cannot predict now",
20
+ "Concentrate and ask again",
21
+ "Don’t count on it",
22
+ "My reply is no",
23
+ "My sources say no",
24
+ "Outlook not so good",
25
+ "Very doubtful"
26
+ ]
27
  chat_answer = random.choice(choices)
28
  return chat_answer
29
 
30
+ chatbot = gr.ChatInterface(random_message, type = "messages", title = "Your Virtual 8 Ball")
31
 
32
  chatbot.launch()