Spaces:
Running
on
Zero
Running
on
Zero
Debug code.
Browse files
app.py
CHANGED
@@ -131,6 +131,8 @@ def generate(image, video, message, chatbot, textbox_in, temperature, top_p, max
|
|
131 |
else:
|
132 |
previous_image = re.findall(r'<img src="./file=(.+?)"', chatbot[0][0])
|
133 |
previous_video = re.findall(r'<video controls playsinline width="500" style="display: inline-block;" src="./file=(.+?)"', chatbot[0][0])
|
|
|
|
|
134 |
if len(previous_image) > 0:
|
135 |
previous_image = previous_image[0]
|
136 |
# 2.1 new image append or pure text input will start a new conversation
|
|
|
131 |
else:
|
132 |
previous_image = re.findall(r'<img src="./file=(.+?)"', chatbot[0][0])
|
133 |
previous_video = re.findall(r'<video controls playsinline width="500" style="display: inline-block;" src="./file=(.+?)"', chatbot[0][0])
|
134 |
+
print(image, video)
|
135 |
+
print(previous_image, previous_video)
|
136 |
if len(previous_image) > 0:
|
137 |
previous_image = previous_image[0]
|
138 |
# 2.1 new image append or pure text input will start a new conversation
|