bestroi commited on
Commit
270b60c
Β·
1 Parent(s): fe0df05

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -0
app.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import random
2
+ import gradio as gr
3
+
4
+ # Define a list of meow emojis
5
+ meow_emojis = ["😺", "😸", "😻", "😽", "πŸ™€", "😼", "😾", "🐱", "🐈", "😹", "😿", "🐾", "😺😺", "🌟🐾", "🐱🐱", "😻😻", "😺🐈", "😻🌟", "😸🐾", "πŸ™€πŸŒŸ", "😽🐾", "😿🐱"]
6
+
7
+ def random_meow_response(message, history):
8
+ # Choose a random meow emoji from the list
9
+ meow = random.choice(meow_emojis)
10
+ return meow
11
+
12
+ # Create a Gradio chat interface with the custom response function
13
+ demo = gr.ChatInterface(random_meow_response,
14
+ theme=gr.themes.Default(primary_hue=gr.themes.colors.red, secondary_hue=gr.themes.colors.pink))
15
+
16
+ # Launch the chat interface
17
+ demo.launch()