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