DeepLearning101 commited on
Commit
7f23ec0
·
verified ·
1 Parent(s): 2e36171

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -20,14 +20,15 @@ def transcribe(audio_file):
20
  file.write(text)
21
  return text, transcript_file_path
22
 
23
- with gr.Blocks(css=".container { max-width: 800px; margin: auto; } .gradio-app { background-color: #f0f0f0; } button { background-color: #4CAF50; color: white; }") as demo:
24
- gr.Markdown("ASR 語音語料辨識修正工具")
 
 
25
 
26
- title="ASR 語音語料辨識修正工具",
27
- description="""<a href='https://www.twman.org' target='_blank'>TonTon Huang Ph.D. @ 2024/04 </a><br>
28
- <a href='https://blog.twman.org/2024/02/asr-tts.html' target='_blank'>那些ASR和TTS可能會踩的坑</a><br>
29
- <a href='https://blog.twman.org/2021/04/ASR.html' target='_blank'>那些語音處理踩的坑</a><br>
30
- <a href='https://blog.twman.org/2021/04/NLP.html' target='_blank'>那些自然語言處理踩的坑</a>""",
31
 
32
  with gr.Row():
33
  # 修改了 Audio 組件的宣告方式
 
20
  file.write(text)
21
  return text, transcript_file_path
22
 
23
+ TITLE = """ASR 語音語料辨識修正工具</h1>"""
24
+ SUBTITLE = """<h2 align="center"><a href='https://www.twman.org' target='_blank'>TonTon Huang Ph.D. @ 2024/04 </a><br></h2>"""
25
+ LINKS = """<a href='https://blog.twman.org/2021/04/ASR.html' target='_blank'>那些語音處理 (Speech Processing) 踩的坑</a> | <a href='https://blog.twman.org/2021/04/NLP.html' target='_blank'>那些自然語言處理 (Natural Language Processing, NLP) 踩的坑</a> | <a href='https://blog.twman.org/2024/02/asr-tts.html' target='_blank'>那些ASR和TTS可能會踩的坑</a> | <a href='https://blog.twman.org/2024/02/LLM.html' target='_blank'>那些大模型開發會踩的坑</a> | <a href='https://blog.twman.org/2023/04/GPT.html' target='_blank'>什麼是大語言模型,它是什麼?想要嗎?</a><br>
26
+ <a href='https://blog.twman.org/2023/07/wsl.html' target='_blank'>用PaddleOCR的PPOCRLabel來微調醫療診斷書和收據</a> | <a href='https://blog.twman.org/2023/07/HugIE.html' target='_blank'>基於機器閱讀理解和指令微調的統一信息抽取框架之診斷書醫囑資訊擷取分析</a><br>"""
27
 
28
+ with gr.Blocks(css=".container { max-width: 800px; margin: auto; } .gradio-app { background-color: #f0f0f0; } button { background-color: #4CAF50; color: white; }") as demo:
29
+ gr.HTML(TITLE)
30
+ gr.HTML(SUBTITLE)
31
+ gr.HTML(LINKS)
 
32
 
33
  with gr.Row():
34
  # 修改了 Audio 組件的宣告方式