titipata commited on
Commit
d3e04f4
1 Parent(s): 98e6b3e

Try adjusting banner

Browse files
Files changed (1) hide show
  1. app.py +10 -9
app.py CHANGED
@@ -76,14 +76,10 @@ def yt_transcribe(yt_url):
76
 
77
 
78
  with gr.Blocks() as demo:
79
- gr.HTML(
80
- """
81
- <div style="text-align: center;">
82
- <img src="thonburian-whisper-logo.png" alt="Thonburian Whisper Logo" style="width:300px; margin-bottom:20px;">
83
- <h1>Thonburian Whisper Demo 🇹🇭</h1>
84
- </div>
85
- """
86
- )
87
 
88
  with gr.Tab("Transcribe Audio"):
89
  gr.Markdown(
@@ -116,5 +112,10 @@ with gr.Blocks() as demo:
116
  yt_transcribe_btn.click(fn=yt_transcribe, inputs=yt_url_input, outputs=[yt_html_output, yt_text_output])
117
 
118
 
 
 
 
 
 
119
  if __name__ == "__main__":
120
- demo.queue().launch()
 
76
 
77
 
78
  with gr.Blocks() as demo:
79
+ with gr.Row(elem_id="banner"):
80
+ gr.Image(value="thonburian-whisper-logo.png", show_label=False, container=False, width=400)
81
+
82
+ gr.Markdown("# Thonburian Whisper Demo 🇹🇭", elem_id="title")
 
 
 
 
83
 
84
  with gr.Tab("Transcribe Audio"):
85
  gr.Markdown(
 
112
  yt_transcribe_btn.click(fn=yt_transcribe, inputs=yt_url_input, outputs=[yt_html_output, yt_text_output])
113
 
114
 
115
+ css = """
116
+ #banner {display: flex; justify-content: center; align-items: center; margin-bottom: 20px;}
117
+ #title {text-align: center; margin-bottom: 30px;}
118
+ """
119
+
120
  if __name__ == "__main__":
121
+ demo.queue().launch(css=css)