CosmoAI commited on
Commit
2b342b3
·
1 Parent(s): 53bdc6c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -51,8 +51,8 @@ def responsenew(data):
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}")
 
51
  # print(f"{data[0]['text']}")
52
  print(f"\n\n{data}")
53
  # print(data['text'])
54
+ text = json.loads(data)
55
+ print(text[0]['text'])
56
  # uid = text['uid']
57
  response = palm.chat( messages=data)
58
  print(f"\n{response.last}")