phamngoctukts commited on
Commit
4b2dda3
·
verified ·
1 Parent(s): f205fa0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -153,7 +153,7 @@ def response(state:AppState = AppState()):
153
  except:
154
  print("Chưa lấy được thông tin dịch")
155
  if state.message["files"] != "":
156
- state.history.append([(txt,state.image["file"]),textout)
157
  state.conversation.append({"role":"user","content":"Bạn: " + str(txt) + str(state.image["file"])})
158
  state.conversation.append({"role":"assistant", "content": "Bot: " + str(textout)})
159
  else:
 
153
  except:
154
  print("Chưa lấy được thông tin dịch")
155
  if state.message["files"] != "":
156
+ state.history.append([(txt,state.image["file"]),textout])
157
  state.conversation.append({"role":"user","content":"Bạn: " + str(txt) + str(state.image["file"])})
158
  state.conversation.append({"role":"assistant", "content": "Bot: " + str(textout)})
159
  else: