From 1f014779e4a4debcea775344a9d0296dfb2a0985 Mon Sep 17 00:00:00 2001 From: binary-husky Date: Sat, 15 Jul 2023 14:31:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 2 +- theme/default.css | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 03a6c5d..ca26d2e 100644 --- a/main.py +++ b/main.py @@ -72,7 +72,7 @@ def main(): clearBtn = gr.Button("清除", variant="secondary", visible=False); clearBtn.style(size="sm") if ENABLE_AUDIO: with gr.Row(): - audio_mic = gr.Audio(source="microphone", type="numpy", streaming=True, show_label=False) + audio_mic = gr.Audio(source="microphone", type="numpy", streaming=True, show_label=False).style(container=False) with gr.Row(): status = gr.Markdown(f"Tip: 按Enter提交, 按Shift+Enter换行。当前模型: {LLM_MODEL} \n {proxy_info}", elem_id="state-panel") with gr.Accordion("基础功能区", open=True, elem_id="basic-panel") as area_basic_fn: diff --git a/theme/default.css b/theme/default.css index 6ceb9a5..07b5383 100644 --- a/theme/default.css +++ b/theme/default.css @@ -82,6 +82,16 @@ margin: 1em 2em 1em 0.5em; } +/* .mic-wrap.svelte-1thnwz { + +} */ +.block.svelte-mppz8v > .mic-wrap.svelte-1thnwz{ + justify-content: center; + display: flex; + padding: 0; + +} + .codehilite .hll { background-color: #6e7681 } .codehilite .c { color: #8b949e; font-style: italic } /* Comment */ .codehilite .err { color: #f85149 } /* Error */