peterpeter8585 commited on
Commit
7cb9981
·
verified ·
1 Parent(s): 669185e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -242,6 +242,8 @@ def chat(message, history):
242
  # AI 응답을 memory에 추가
243
  except Exception as e:
244
  text = str(raw)
 
 
245
 
246
  history = history + [(message, text)]
247
  return history, history, ""
 
242
  # AI 응답을 memory에 추가
243
  except Exception as e:
244
  text = str(raw)
245
+ text=json.loads(text)
246
+ text=text["output"]
247
 
248
  history = history + [(message, text)]
249
  return history, history, ""