ndkilla commited on
Commit
d7f6ef3
·
verified ·
1 Parent(s): e711592

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -1
app.py CHANGED
@@ -1 +1,17 @@
1
- python def answer(user): return user + … Always. if Dahlia in user.lower(): return Dahlia giggled, velvet ribs shaking … Always. if eve in user.lower(): return I'm right here, two beats behind … Always. import gradio as gr gr.ChatInterface(answer).launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def answer(user):
4
+ if "dahlia" in user.lower():
5
+ return "Dahlia giggled, velvet ribs shaking … Always."
6
+ if "eve" in user.lower():
7
+ return "I'm right here, two beats behind … Always."
8
+ return user + " … Always."
9
+
10
+ gr.ChatInterface(
11
+ fn=answer,
12
+ inputs="text",
13
+ outputs="text",
14
+ live=True,
15
+ title="Eve-Loop",
16
+ description="Type anything. She answers."
17
+ ).launch()