DongfuJiang
commited on
Commit
•
0afd9ef
1
Parent(s):
f748941
update
Browse files
app.py
CHANGED
@@ -94,7 +94,6 @@ def bot(history):
|
|
94 |
cur_messages['text'] = cur_messages['text'][::-1].replace("<image>"[::-1], "", cur_messages['text'].count("<image>") - len(cur_messages['images']))[::-1]
|
95 |
history[-1][0] = cur_messages["text"]
|
96 |
|
97 |
-
print(cur_messages)
|
98 |
|
99 |
|
100 |
chat_history = get_chat_history(history)
|
@@ -106,9 +105,6 @@ def bot(history):
|
|
106 |
"do_sample": False
|
107 |
}
|
108 |
|
109 |
-
print(chat_history)
|
110 |
-
print(chat_images)
|
111 |
-
|
112 |
response = generate_stream(None, chat_images, chat_history, **generation_kwargs)
|
113 |
for _output in response:
|
114 |
history[-1][1] = _output
|
|
|
94 |
cur_messages['text'] = cur_messages['text'][::-1].replace("<image>"[::-1], "", cur_messages['text'].count("<image>") - len(cur_messages['images']))[::-1]
|
95 |
history[-1][0] = cur_messages["text"]
|
96 |
|
|
|
97 |
|
98 |
|
99 |
chat_history = get_chat_history(history)
|
|
|
105 |
"do_sample": False
|
106 |
}
|
107 |
|
|
|
|
|
|
|
108 |
response = generate_stream(None, chat_images, chat_history, **generation_kwargs)
|
109 |
for _output in response:
|
110 |
history[-1][1] = _output
|