Mazz18 commited on
Commit
bb98dfa
·
verified ·
1 Parent(s): 1d717ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -1,12 +1,11 @@
1
  import gradio as gr
2
  import random
3
 
4
- def random_message(message, history):
5
- choices = ["yes", "No", "As I see it", "yes", "Outlook good", "Yes - definitely", "without a doubt", "ask again later", "cannot predict now," "my reply is no" "very doubtful," ]
6
- chat_answer = random_choice(chocies)
7
- return chat_answer
8
 
9
- print("hello, world!")
10
- chatbot = gr.ChatInterface(random_message, type = "messages", title = "chatbot for kwk", )
11
 
12
  chatbot.launch()
 
1
  import gradio as gr
2
  import random
3
 
4
+ def echo(message, history):
5
+ choices = ["yes", "No", "As I see it", "yes", "Outlook good", "Yes - definitely", "without a doubt", "ask again later", "cannot predict now", "my reply is no", "very doubtful", ]
6
+ return random.choice(my_list)
 
7
 
8
+
9
+ chatbot = gr.ChatInterface(echo, type="messages", title = "Eight Ball", )
10
 
11
  chatbot.launch()