Delete app.py
Browse files
app.py
DELETED
|
@@ -1,17 +0,0 @@
|
|
| 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()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|