Spaces:
Sleeping
Sleeping
File size: 543 Bytes
6c459cc 866f79d 6c459cc 0b54ce5 866f79d 6c459cc 086d692 0b54ce5 866f79d |
1 2 3 4 5 6 7 8 9 10 11 |
import gradio as gr
import random
def response_system(message, history):
responses = ["yes", "no", "maybe", "I don't think so", "I think so", "What kind of a question is that?", "Are you sure you want to know?", "I'm not telling XD", "You ask too many questions", "That depends on you", "Without a doubt"]
return random.choice(responses)
print("Hello, world!")
chatbot = gr.ChatInterface(response_system, type = "messages", title = "8 Ball") #chatbot UI = conversation history and user input
chatbot.launch() #displays the chatbot |