Spaces:
Paused
Paused
Commit ·
c2d8f75
1
Parent(s): 2e03f7b
fix: replace BMC widget script with static link
Browse files
app.py
CHANGED
|
@@ -17,7 +17,8 @@ import spaces
|
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
-
|
|
|
|
| 21 |
|
| 22 |
OUTPUT_DIR = Path("outputs")
|
| 23 |
OUTPUT_DIR.mkdir(exist_ok=True)
|
|
@@ -469,7 +470,8 @@ def generate(
|
|
| 469 |
return str(audio_path), log, settings
|
| 470 |
|
| 471 |
|
| 472 |
-
with gr.Blocks(
|
|
|
|
| 473 |
gr.Markdown("# AMAP ZeroGPU Worker")
|
| 474 |
with gr.Row():
|
| 475 |
job_id = gr.Textbox(label="Job ID")
|
|
|
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
+
# Buy Me a Coffee: plain static link (no third-party JS; the BMC widget script uses document.write)
|
| 21 |
+
BMC_LINK_HTML = '<a href="https://www.buymeacoffee.com/2btainment" target="_blank" rel="noopener noreferrer" class="bmc-link" style="position:fixed;right:16px;bottom:16px;z-index:9999;background:#FFDD00;color:#000;padding:8px 14px;border-radius:999px;font:600 14px/1.2 system-ui,-apple-system,sans-serif;text-decoration:none;box-shadow:0 2px 8px rgba(0,0,0,.25)">Buy me a coffee</a>'
|
| 22 |
|
| 23 |
OUTPUT_DIR = Path("outputs")
|
| 24 |
OUTPUT_DIR.mkdir(exist_ok=True)
|
|
|
|
| 470 |
return str(audio_path), log, settings
|
| 471 |
|
| 472 |
|
| 473 |
+
with gr.Blocks(title="AMAP ZeroGPU Worker") as demo:
|
| 474 |
+
gr.HTML(BMC_LINK_HTML)
|
| 475 |
gr.Markdown("# AMAP ZeroGPU Worker")
|
| 476 |
with gr.Row():
|
| 477 |
job_id = gr.Textbox(label="Job ID")
|