Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -12,13 +12,13 @@ palm.configure(api_key=os.environ['PALM_KEY'])
|
|
12 |
|
13 |
def responsenew(data):
|
14 |
response = palm.chat(messages=data)
|
15 |
-
if response.last
|
16 |
respo = {
|
17 |
"message": response.last,
|
18 |
"action": "payment",
|
19 |
"function": "nothing"
|
20 |
}
|
21 |
-
elif
|
22 |
respo = {
|
23 |
"message": response.last,
|
24 |
"action": "show_friends",
|
|
|
12 |
|
13 |
def responsenew(data):
|
14 |
response = palm.chat(messages=data)
|
15 |
+
if "payment" in response.last:
|
16 |
respo = {
|
17 |
"message": response.last,
|
18 |
"action": "payment",
|
19 |
"function": "nothing"
|
20 |
}
|
21 |
+
elif "show friends" in response.last:
|
22 |
respo = {
|
23 |
"message": response.last,
|
24 |
"action": "show_friends",
|