orrinin commited on
Commit
3f0e47e
·
verified ·
1 Parent(s): fb34af7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -30,10 +30,10 @@ system_prompt = '''
30
 
31
  DESCRIPTION = '''
32
  <div>
33
- <h1 style="text-align: center;">Musen</h1>
34
- <p>A podcast talking about the link's content you provided.</p>
35
- <p>🔎 Paste a website link with http/https.</p>
36
- <p>🦕 Generate podcast. </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="Podcast", 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="Enter a http link")
176
  with gr.Row():
177
- submit_btn = gr.Button("🚀 Send") # Create a submit button
178
- clear_btn = gr.ClearButton(output_box, value="🗑️ Clear") # Create a clear button
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)