CosmoAI commited on
Commit
07ced46
·
1 Parent(s): 918129d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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)