CosmoAI commited on
Commit
26420fb
·
1 Parent(s): c4d3111

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -49,7 +49,7 @@ palm.configure(api_key=os.environ["PALM_KEY"])
49
  def responsenew(data):
50
  idval = str(uuid.uuid4())
51
  print(f"\n\n{data}")
52
- items = json.loads(data)
53
  text = items['text']
54
  print(text)
55
  response = palm.chat( messages=data)
 
49
  def responsenew(data):
50
  idval = str(uuid.uuid4())
51
  print(f"\n\n{data}")
52
+ items = json.JSONDecoder().decode(data)
53
  text = items['text']
54
  print(text)
55
  response = palm.chat( messages=data)