Spaces:
Runtime error
Runtime error
handling duplicate avatar
Browse files- app_dialogue.py +4 -4
app_dialogue.py
CHANGED
@@ -525,7 +525,7 @@ with gr.Blocks(title="IDEFICS Playground", theme=gr.themes.Base()) as demo:
|
|
525 |
|
526 |
if image is None:
|
527 |
# Case where there is no image OR the image is passed as `<fake_token_around_image><image:IMAGE_URL><fake_token_around_image>`
|
528 |
-
chat_history.append([prompt_list_to_markdown(user_prompt_list),
|
529 |
else:
|
530 |
# Case where the image is passed through the Image Box.
|
531 |
# Convert the image into base64 for both passing it through the chat history and
|
@@ -533,7 +533,7 @@ with gr.Blocks(title="IDEFICS Playground", theme=gr.themes.Base()) as demo:
|
|
533 |
chat_history.append(
|
534 |
[
|
535 |
f"{prompt_list_to_markdown([image] + user_prompt_list)}",
|
536 |
-
|
537 |
]
|
538 |
)
|
539 |
|
@@ -601,7 +601,7 @@ with gr.Blocks(title="IDEFICS Playground", theme=gr.themes.Base()) as demo:
|
|
601 |
|
602 |
if image is None:
|
603 |
# Case where there is no image OR the image is passed as `<fake_token_around_image><image:IMAGE_URL><fake_token_around_image>`
|
604 |
-
chat_history.append([prompt_list_to_markdown(user_prompt_list),
|
605 |
else:
|
606 |
# Case where the image is passed through the Image Box.
|
607 |
# Convert the image into base64 for both passing it through the chat history and
|
@@ -609,7 +609,7 @@ with gr.Blocks(title="IDEFICS Playground", theme=gr.themes.Base()) as demo:
|
|
609 |
chat_history.append(
|
610 |
[
|
611 |
f"{prompt_list_to_markdown([image] + user_prompt_list)}",
|
612 |
-
|
613 |
]
|
614 |
)
|
615 |
|
|
|
525 |
|
526 |
if image is None:
|
527 |
# Case where there is no image OR the image is passed as `<fake_token_around_image><image:IMAGE_URL><fake_token_around_image>`
|
528 |
+
chat_history.append([prompt_list_to_markdown(user_prompt_list), ''])
|
529 |
else:
|
530 |
# Case where the image is passed through the Image Box.
|
531 |
# Convert the image into base64 for both passing it through the chat history and
|
|
|
533 |
chat_history.append(
|
534 |
[
|
535 |
f"{prompt_list_to_markdown([image] + user_prompt_list)}",
|
536 |
+
'',
|
537 |
]
|
538 |
)
|
539 |
|
|
|
601 |
|
602 |
if image is None:
|
603 |
# Case where there is no image OR the image is passed as `<fake_token_around_image><image:IMAGE_URL><fake_token_around_image>`
|
604 |
+
chat_history.append([prompt_list_to_markdown(user_prompt_list), ''])
|
605 |
else:
|
606 |
# Case where the image is passed through the Image Box.
|
607 |
# Convert the image into base64 for both passing it through the chat history and
|
|
|
609 |
chat_history.append(
|
610 |
[
|
611 |
f"{prompt_list_to_markdown([image] + user_prompt_list)}",
|
612 |
+
'',
|
613 |
]
|
614 |
)
|
615 |
|