Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -64,12 +64,15 @@ def update_model(model_name):
|
|
| 64 |
|
| 65 |
# Gradio UI
|
| 66 |
with gr.Blocks(title="LeCarnet - Chat Interface") as demo:
|
|
|
|
|
|
|
|
|
|
| 67 |
with gr.Row(equal_height=True):
|
|
|
|
| 68 |
gr.Markdown(
|
| 69 |
-
f'<img src="
|
| 70 |
elem_classes="header-image"
|
| 71 |
)
|
| 72 |
-
# Title next to image
|
| 73 |
gr.Markdown(
|
| 74 |
"<h1 style='margin:0; display:inline; vertical-align:top;'>LeCarnet</h1>",
|
| 75 |
label=None
|
|
|
|
| 64 |
|
| 65 |
# Gradio UI
|
| 66 |
with gr.Blocks(title="LeCarnet - Chat Interface") as demo:
|
| 67 |
+
# Ensure the image is in a 'static' directory
|
| 68 |
+
image_path = os.path.join("static", "le-carnet.png")
|
| 69 |
+
|
| 70 |
with gr.Row(equal_height=True):
|
| 71 |
+
# Use the correct URL format for Gradio static files
|
| 72 |
gr.Markdown(
|
| 73 |
+
f'<img src="/file={image_path}" style="height:80px; width:80px; margin-right:10px; vertical-align:top;">',
|
| 74 |
elem_classes="header-image"
|
| 75 |
)
|
|
|
|
| 76 |
gr.Markdown(
|
| 77 |
"<h1 style='margin:0; display:inline; vertical-align:top;'>LeCarnet</h1>",
|
| 78 |
label=None
|