File size: 721 Bytes
7abc4f0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
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() |