Spaces:
Sleeping
Sleeping
Try adjusting banner
Browse files
app.py
CHANGED
@@ -76,14 +76,10 @@ def yt_transcribe(yt_url):
|
|
76 |
|
77 |
|
78 |
with gr.Blocks() as demo:
|
79 |
-
gr.
|
80 |
-
""
|
81 |
-
|
82 |
-
|
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)
|