cronos3k commited on
Commit
41788b6
Β·
verified Β·
1 Parent(s): 6da0f0b

ui: make disclaimer a visible yellow banner in the Gradio header

Browse files
Files changed (1) hide show
  1. app.py +16 -6
app.py CHANGED
@@ -372,12 +372,22 @@ def build_ui(default_device: str = "cuda"):
372
 
373
  gr.Markdown(
374
  "# LongCat-AudioDiT β€” Voice Cloning Studio\n"
375
- "State-of-the-art voice cloning based on [LongCat-AudioDiT](https://github.com/meituan-longcat/LongCat-AudioDiT) by the Meituan LongCat Team. "
376
- "Give it a reference audio, type your text, get the result.\n\n"
377
- "> **Research & Testing Only.** This tool is provided strictly for research, educational, and personal experimentation purposes. "
378
- "It is **not** intended for generating deceptive, misleading, or harmful content. "
379
- "Do not use it to impersonate real individuals without their explicit consent, to create non-consensual deepfakes, "
380
- "or for any activity that violates applicable laws. By using this tool you accept full responsibility for your use."
 
 
 
 
 
 
 
 
 
 
381
  )
382
 
383
  # ── Global settings row ──────────────────────────────────────────
 
372
 
373
  gr.Markdown(
374
  "# LongCat-AudioDiT β€” Voice Cloning Studio\n"
375
+ "State-of-the-art voice cloning based on "
376
+ "[LongCat-AudioDiT](https://github.com/meituan-longcat/LongCat-AudioDiT) "
377
+ "by the Meituan LongCat Team. "
378
+ "Give it a reference audio, type your text, get the result."
379
+ )
380
+
381
+ gr.HTML(
382
+ '<div style="background:#fff3cd; border:1px solid #ffc107; border-radius:8px; '
383
+ 'padding:12px 16px; margin-bottom:12px; color:#664d03; font-size:14px;">'
384
+ '<strong>Research &amp; Testing Only.</strong> '
385
+ 'This tool is provided strictly for research, educational, and personal experimentation purposes. '
386
+ 'It is <strong>not</strong> intended for generating deceptive, misleading, or harmful content. '
387
+ 'Do not use it to impersonate real individuals without their explicit consent, '
388
+ 'to create non-consensual deepfakes, or for any activity that violates applicable laws or regulations. '
389
+ 'By using this tool you accept full responsibility for ensuring your use complies with all relevant laws in your jurisdiction.'
390
+ '</div>'
391
  )
392
 
393
  # ── Global settings row ──────────────────────────────────────────