Spaces:
Running
on
Zero
Running
on
Zero
qiaochanghao
commited on
Commit
·
7dada90
1
Parent(s):
2cb93e1
add logo pic
Browse files
app.py
CHANGED
|
@@ -236,9 +236,14 @@ css = """
|
|
| 236 |
#edit_text{margin-top: -62px !important}
|
| 237 |
"""
|
| 238 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 239 |
with gr.Blocks(css=css) as demo:
|
| 240 |
with gr.Column(elem_id="col-container"):
|
| 241 |
-
gr.HTML('<img src="
|
| 242 |
gr.Markdown("[Learn more](https://github.com/FireRedTeam/FireRed-Image-Edit) about the FireRed-Image-Edit series. Try [download model](https://huggingface.co/FireRedTeam/FireRed-Image-Edit) to run locally with ComfyUI or diffusers.")
|
| 243 |
with gr.Row():
|
| 244 |
with gr.Column():
|
|
|
|
| 236 |
#edit_text{margin-top: -62px !important}
|
| 237 |
"""
|
| 238 |
|
| 239 |
+
def get_image_base64(image_path):
|
| 240 |
+
with open(image_path, "rb") as img_file:
|
| 241 |
+
return base64.b64encode(img_file.read()).decode('utf-8')
|
| 242 |
+
logo_base64 = get_image_base64("logo.png")
|
| 243 |
+
|
| 244 |
with gr.Blocks(css=css) as demo:
|
| 245 |
with gr.Column(elem_id="col-container"):
|
| 246 |
+
gr.HTML(f'<img src="data:image/png;base64,{logo_base64}" alt="Firered Logo" width="400" style="display: block; margin: 0 auto;">')
|
| 247 |
gr.Markdown("[Learn more](https://github.com/FireRedTeam/FireRed-Image-Edit) about the FireRed-Image-Edit series. Try [download model](https://huggingface.co/FireRedTeam/FireRed-Image-Edit) to run locally with ComfyUI or diffusers.")
|
| 248 |
with gr.Row():
|
| 249 |
with gr.Column():
|