MeowBot / app.py
bestroi's picture
Create app.py
7abc4f0
raw
history blame contribute delete
721 Bytes
import random
import gradio as gr
# Define a list of meow emojis
meow_emojis = ["😺", "😸", "😻", "😽", "πŸ™€", "😼", "😾", "🐱", "🐈", "😹", "😿", "🐾", "😺😺", "🌟🐾", "🐱🐱", "😻😻", "😺🐈", "😻🌟", "😸🐾", "πŸ™€πŸŒŸ", "😽🐾", "😿🐱"]
def random_meow_response(message, history):
# Choose a random meow emoji from the list
meow = random.choice(meow_emojis)
return meow
# Create a Gradio chat interface with the custom response function
demo = gr.ChatInterface(random_meow_response,
theme=gr.themes.Default(primary_hue=gr.themes.colors.pink, secondary_hue=gr.themes.colors.pink))
# Launch the chat interface
demo.launch()