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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -1,8 +1,12 @@
1
  import gradio as gr
 
2
 
3
- def echo(message, history):
4
- return message
 
 
5
 
6
- chatbot = gr.ChatInterface(echo)
 
7
 
8
  chatbot.launch()
 
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()