AngelinaZanardi commited on
Commit
81a1d8a
·
verified ·
1 Parent(s): 872531e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -7
app.py CHANGED
@@ -101,14 +101,17 @@ demo = gr.Blocks()
101
 
102
  with demo:
103
  with gr.Row():
104
- gr.Markdown(
105
- f"""
106
- <div style="display: flex; align-items: center;">
107
- <img src="file={logo_path}" width="100" style="margin-right: 20px;" />
 
 
 
108
  <h1 style="font-size: 3em;">NB-Whisper Demo</h1>
109
- </div>
110
- """
111
- )
112
  mf_transcribe = gr.Interface(
113
  fn=transcribe,
114
  inputs=[
 
101
 
102
  with demo:
103
  with gr.Row():
104
+ with gr.Column(scale=1, min_width=120):
105
+ # Use Gradio's Image component to load the logo
106
+ logo = gr.Image(value=logo_path, interactive=False, show_label=False, width=100) # Adjust width as needed
107
+ with gr.Column(scale=8):
108
+ # Use Markdown for title and description
109
+ gr.Markdown(
110
+ """
111
  <h1 style="font-size: 3em;">NB-Whisper Demo</h1>
112
+ """
113
+ )
114
+
115
  mf_transcribe = gr.Interface(
116
  fn=transcribe,
117
  inputs=[