Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -49,11 +49,12 @@ palm.configure(api_key=os.environ["PALM_KEY"])
|
|
49 |
def responsenew(data):
|
50 |
idval = str(uuid.uuid4())
|
51 |
print(data)
|
|
|
52 |
# text = json.loads(query)
|
53 |
# data = text['text']
|
54 |
# uid = text['uid']
|
55 |
response = palm.chat( messages=data)
|
56 |
-
print(response)
|
57 |
if data is not None:
|
58 |
if re.search(r"(Remind me|Remind me to)", data):
|
59 |
values = getValues(data)
|
|
|
49 |
def responsenew(data):
|
50 |
idval = str(uuid.uuid4())
|
51 |
print(data)
|
52 |
+
print(data['text'])
|
53 |
# text = json.loads(query)
|
54 |
# data = text['text']
|
55 |
# uid = text['uid']
|
56 |
response = palm.chat( messages=data)
|
57 |
+
print(response.last)
|
58 |
if data is not None:
|
59 |
if re.search(r"(Remind me|Remind me to)", data):
|
60 |
values = getValues(data)
|