Spaces:
Runtime error
Runtime error
phamngoctukts
commited on
Update app.py
Browse files
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:
|