junxiliu commited on
Commit
b710c3f
·
1 Parent(s): 321cfdb
Files changed (1) hide show
  1. app.py +21 -1
app.py CHANGED
@@ -356,7 +356,27 @@ hr {
356
  """
357
  with gr.Blocks(title="MeanAudio Generator", theme=theme, css=custom_css) as demo:
358
  gr.Markdown("# MeanAudio:Fast and Faithful Text-to-Audio Generation with Mean Flows", elem_id="main-header")
359
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
360
  with gr.Column(elem_classes="setting-section"):
361
  with gr.Row():
362
  available_variants = (
 
356
  """
357
  with gr.Blocks(title="MeanAudio Generator", theme=theme, css=custom_css) as demo:
358
  gr.Markdown("# MeanAudio:Fast and Faithful Text-to-Audio Generation with Mean Flows", elem_id="main-header")
359
+ # 使用 gr.HTML 替代 gr.Markdown
360
+ badge_html = '''
361
+ <div id="project-badges"> <!-- 使用 ID
362
+ 以便应用 CSS -->
363
+ <div id="badge-container"> <!-- 添加这个容器 div 并使用 ID -->
364
+ <a href="https://huggingface.co/junxiliu/MeanAudio">
365
+ <img src="https://img.shields.io/badge/Model-HuggingFace-violet?logo=huggingface" alt="Hugging Face Model">
366
+ </a>
367
+ <a href="https://huggingface.co/spaces/chenxie95/MeanAudio">
368
+ <img src="https://img.shields.io/badge/Space-HuggingFace-8A2BE2?logo=huggingface" alt="Hugging Face Space">
369
+ </a>
370
+ <a href="https://meanaudio.github.io/">
371
+ <img src="https://img.shields.io/badge/Project-Page-brightred?style=flat" alt="Project Page">
372
+ </a>
373
+ <a href="https://github.com/xiquan-li/MeanAudio">
374
+ <img src="https://img.shields.io/badge/Code-GitHub-black?logo=github" alt="GitHub">
375
+ </a>
376
+ </div>
377
+ </div>
378
+ '''
379
+ gr.HTML(badge_html)
380
  with gr.Column(elem_classes="setting-section"):
381
  with gr.Row():
382
  available_variants = (