Spaces:
Running
Running
return user_prompt in textbox
Browse files- app_dialogue.py +5 -3
app_dialogue.py
CHANGED
@@ -585,7 +585,7 @@ chatbot = gr.Chatbot(
|
|
585 |
)
|
586 |
|
587 |
with gr.Blocks(title="AI Meme Generator", theme=gr.themes.Base()) as demo:
|
588 |
-
with gr.Row(scale
|
589 |
gr.Image(
|
590 |
IDEFICS_LOGO,
|
591 |
show_label=False,
|
@@ -596,7 +596,9 @@ with gr.Blocks(title="AI Meme Generator", theme=gr.themes.Base()) as demo:
|
|
596 |
width=40,
|
597 |
)
|
598 |
with gr.Row():
|
599 |
-
gr.HTML(
|
|
|
|
|
600 |
with gr.Row(elem_id="model_selector_row"):
|
601 |
model_selector = gr.Dropdown(
|
602 |
choices=MODELS,
|
@@ -874,7 +876,7 @@ with gr.Blocks(title="AI Meme Generator", theme=gr.themes.Base()) as demo:
|
|
874 |
)
|
875 |
meme_image = pil_to_temp_file(meme_image)
|
876 |
all_meme_images.append(meme_image)
|
877 |
-
yield
|
878 |
if i == 3:
|
879 |
return
|
880 |
|
|
|
585 |
)
|
586 |
|
587 |
with gr.Blocks(title="AI Meme Generator", theme=gr.themes.Base()) as demo:
|
588 |
+
with gr.Row(scale=0.5):
|
589 |
gr.Image(
|
590 |
IDEFICS_LOGO,
|
591 |
show_label=False,
|
|
|
596 |
width=40,
|
597 |
)
|
598 |
with gr.Row():
|
599 |
+
gr.HTML(
|
600 |
+
"""<h1 align="center">AI Meme Generator <span style="font-size: 13px;">powered by <a href="https://huggingface.co/blog/idefics">IDEFICS</a></span></h1>"""
|
601 |
+
)
|
602 |
with gr.Row(elem_id="model_selector_row"):
|
603 |
model_selector = gr.Dropdown(
|
604 |
choices=MODELS,
|
|
|
876 |
)
|
877 |
meme_image = pil_to_temp_file(meme_image)
|
878 |
all_meme_images.append(meme_image)
|
879 |
+
yield user_prompt_str, all_meme_images, chat_history
|
880 |
if i == 3:
|
881 |
return
|
882 |
|