diff --git a/app_dialogue.py b/app_dialogue.py index 73ebbce3160c895d9502b47a1bc338cf0f3d8e0b..bee7242a8a2c92ab29643873f046a8616371a969 100644 --- a/app_dialogue.py +++ b/app_dialogue.py @@ -583,22 +583,15 @@ chatbot = gr.Chatbot( visible=False, avatar_images=[None, BOT_AVATAR], ) - -with gr.Blocks(title="AI Meme Generator", theme=gr.themes.Base()) as demo: +css=''' +.gradio-container{max-width: 970px!important} +''' +with gr.Blocks(title="AI Meme Generator", theme=gr.themes.Base(), css=css) as demo: with gr.Row(scale=0.5): - gr.Image( - IDEFICS_LOGO, - show_label=False, - show_download_button=False, - show_share_button=False, - container=False, - height=40, - width=40, - ) - with gr.Row(): gr.HTML( - """

AI Meme Generator powered by IDEFICS

""" + """

AI Meme Generator powered by IDEFICS

""" ) + with gr.Row(elem_id="model_selector_row"): model_selector = gr.Dropdown( choices=MODELS, @@ -902,7 +895,7 @@ with gr.Blocks(title="AI Meme Generator", theme=gr.themes.Base()) as demo: full_text += acc_text acc_text = "" - textbox.submit( + textbox.submit(fn=lambda: "", inputs=[], outputs=[generated_memes_gallery], queue=False).( fn=model_inference, inputs=[ model_selector,