MaxLSB commited on
Commit
7811152
·
verified ·
1 Parent(s): 181cd84

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -64,13 +64,10 @@ def update_model(model_name):
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(
 
64
 
65
  # Gradio UI
66
  with gr.Blocks(title="LeCarnet - Chat Interface") as demo:
67
+ # Header with image and title
68
+ with gr.Row():
 
 
 
69
  gr.Markdown(
70
+ value=f"![](file/{image_path})",
71
  elem_classes="header-image"
72
  )
73
  gr.Markdown(