Spaces:
Running
Running
Trying to fix the mascot again
Browse files1189 unmodified lines119011911192119311941195119611971198119912001189 unmodified lines)bad_tags_illustrated_string = gr.HTML()with gr.Column(scale=1):gr.HTML(f'<div style="text-align:center;">'f'<img src="/file={MASCOT_FILE.as_posix()}" 'f'alt="Cute Mascot" style="height:220px;width:auto;">'f'</div>')submit_button = gr.Button(variant="primary")with gr.Row():1189 unmodified lines119011911192119311941195119611971198119912001201120212031189 unmodified lines)bad_tags_illustrated_string = gr.HTML()with gr.Column(scale=1):# Load once so Gradio serves it directly (no /file= URL needed)_mascot_pil = Image.open(MASCOT_FILE).convert("RGBA")mascot_img = gr.Image(value=_mascot_pil, # pass the in-memory imageshow_label=False,interactive=False,height=220, # keep the same visual sizeelem_id="mascot")submit_button = gr.Button(variant="primary")with gr.Row():
app.py+8-5