CosmoAI commited on
Commit
5593870
·
1 Parent(s): de19598

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -49,12 +49,12 @@ palm.configure(api_key=os.environ["PALM_KEY"])
49
  def responsenew(data):
50
  idval = uuid.uuid4()
51
  print(data)
52
- data = data.lower()
 
53
  response = palm.chat( messages=data)
54
  print(response)
55
  if data is not None:
56
  if re.search(r"(remind me|remind me to)", data):
57
-
58
  values = getValues(data)
59
  if values[0] is not None:
60
  msg = values[0]
 
49
  def responsenew(data):
50
  idval = uuid.uuid4()
51
  print(data)
52
+ data = data["text"].lower()
53
+ user = data["uid"]
54
  response = palm.chat( messages=data)
55
  print(response)
56
  if data is not None:
57
  if re.search(r"(remind me|remind me to)", data):
 
58
  values = getValues(data)
59
  if values[0] is not None:
60
  msg = values[0]