CosmoAI commited on
Commit
920d90c
·
1 Parent(s): 12adda6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -48,13 +48,13 @@ palm.configure(api_key=os.environ["PALM_KEY"])
48
 
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)
 
48
 
49
  def responsenew(data):
50
  idval = str(uuid.uuid4())
51
+ print(f"\n\n{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(f"\n{response.last}")
58
  if data is not None:
59
  if re.search(r"(Remind me|Remind me to)", data):
60
  values = getValues(data)