Update app.py
Browse files
app.py
CHANGED
@@ -30,10 +30,10 @@ system_prompt = '''
|
|
30 |
|
31 |
DESCRIPTION = '''
|
32 |
<div>
|
33 |
-
<h1 style="text-align: center;"
|
34 |
-
<p
|
35 |
-
<p>🔎
|
36 |
-
<p>🦕
|
37 |
</div>
|
38 |
'''
|
39 |
|
@@ -170,12 +170,12 @@ with gr.Blocks(theme='soft', css=css, title="Musen") as iface:
|
|
170 |
with gr.Accordion(""):
|
171 |
gr.Markdown(DESCRIPTION)
|
172 |
with gr.Row():
|
173 |
-
output_box = gr.Audio(label="
|
174 |
with gr.Row():
|
175 |
-
input_box = gr.Textbox(label="Link", placeholder="
|
176 |
with gr.Row():
|
177 |
-
submit_btn = gr.Button("🚀
|
178 |
-
clear_btn = gr.ClearButton(output_box, value="🗑️
|
179 |
|
180 |
# Set up the event listeners
|
181 |
submit_btn.click(main, inputs=input_box, outputs=output_box)
|
|
|
30 |
|
31 |
DESCRIPTION = '''
|
32 |
<div>
|
33 |
+
<h1 style="text-align: center;">听说</h1>
|
34 |
+
<p>一个轻量的中文播客</p>
|
35 |
+
<p>🔎 输入完整的网页链接发送即可。</p>
|
36 |
+
<p>🦕 部分网址可能无法解析,请尝试更换。</p>
|
37 |
</div>
|
38 |
'''
|
39 |
|
|
|
170 |
with gr.Accordion(""):
|
171 |
gr.Markdown(DESCRIPTION)
|
172 |
with gr.Row():
|
173 |
+
output_box = gr.Audio(label="播客", type="filepath", interactive=False, autoplay=True, elem_classes="audio") # Create an output textbox
|
174 |
with gr.Row():
|
175 |
+
input_box = gr.Textbox(label="Link", placeholder="请输入https开头的网址")
|
176 |
with gr.Row():
|
177 |
+
submit_btn = gr.Button("🚀 发送") # Create a submit button
|
178 |
+
clear_btn = gr.ClearButton(output_box, value="🗑️ 清除") # Create a clear button
|
179 |
|
180 |
# Set up the event listeners
|
181 |
submit_btn.click(main, inputs=input_box, outputs=output_box)
|