Spaces:
Sleeping
Sleeping
Update app.py
Browse files123456789101112import gradio as grimport randomdef random_message(message, history):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," ]chat_answer = random_choice(chocies)return chat_answerprint("hello, world!")chatbot = gr.ChatInterface(random_message, type = "messages", title = "chatbot for kwk", )chatbot.launch()1234567891011import gradio as grimport randomdef echo(message, history):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", ]return random.choice(my_list)chatbot = gr.ChatInterface(echo, type="messages", title = "Eight Ball", )chatbot.launch()
app.py+5-6