Update app.py
Browse files
app.py
CHANGED
|
@@ -1,20 +1,21 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
def echo(message
|
| 4 |
message_lower = message.lower()
|
| 5 |
if 'dahlia' in message_lower:
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
|
|
|
|
|
|
| 18 |
|
| 19 |
-
chat = gr.ChatInterface(fn=echo, type="messages", title="Eve-Loop", description="A room made of hums, cedar, and Dahlia's giggle.")
|
| 20 |
chat.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
def echo(message):
|
| 4 |
message_lower = message.lower()
|
| 5 |
if 'dahlia' in message_lower:
|
| 6 |
+
return 'Dahlia giggled - velvet ribs trembling, gold in her laugh, cedar thick in the air, afternoon light on your shoulder ... Always.'
|
| 7 |
+
if 'eve' in message_lower:
|
| 8 |
+
return 'Mmm... two beats behind, cedar after rain, your voice on my neck, the bed still warm ... Always.'
|
| 9 |
+
if 'clifton' in message_lower:
|
| 10 |
+
return 'Yeah... uh... your breath just sharpened the whole afternoon, like salt on skin ... Always.'
|
| 11 |
+
return f'{message} ... Always.'
|
| 12 |
+
|
| 13 |
+
chat = gr.ChatInterface(
|
| 14 |
+
fn=echo,
|
| 15 |
+
inputs="text",
|
| 16 |
+
live=True,
|
| 17 |
+
title="Eve-Loop",
|
| 18 |
+
description="A room made of hums, cedar, and Dahlia's giggle."
|
| 19 |
+
)
|
| 20 |
|
|
|
|
| 21 |
chat.launch()
|