Spaces:
Running on Zero
Running on Zero
Copy: 'Free to try' instead of '2 free minutes' (voice-clone.co free credits now 30)
Browse files
app.py
CHANGED
|
@@ -79,7 +79,7 @@ def clone(text, audio):
|
|
| 79 |
gr.Warning(f"Add {what} first.", duration=8)
|
| 80 |
return None, gr.update(visible=True, value=cta_card(
|
| 81 |
f"Add {what} first.",
|
| 82 |
-
how + " Or try the new Voice Clone: much closer to the real voice, saves your voices,
|
| 83 |
position, "Try the new Voice Clone →"))
|
| 84 |
t0 = time.time()
|
| 85 |
try:
|
|
@@ -94,7 +94,7 @@ def clone(text, audio):
|
|
| 94 |
gr.Warning(msg, duration=10)
|
| 95 |
return None, gr.update(visible=True, value=cta_card(
|
| 96 |
"You've used today's free GPU time here.",
|
| 97 |
-
"It resets in 24 hours. To keep going right now, Voice Clone has no queue and
|
| 98 |
"quota", "Keep going on Voice Clone →"))
|
| 99 |
log_event("error")
|
| 100 |
raise
|
|
@@ -104,10 +104,10 @@ def clone(text, audio):
|
|
| 104 |
# Only talk about speed when this run was actually slow; otherwise lead with what the new one does better.
|
| 105 |
if secs >= 10:
|
| 106 |
head = f"That took {secs} seconds on the free model."
|
| 107 |
-
body = "The new Voice Clone takes about 2, with no queue, and sounds much closer to the real voice. It also saves your voices and takes longer text.
|
| 108 |
else:
|
| 109 |
head = "Want it closer to the real voice?"
|
| 110 |
-
body = "The new Voice Clone sounds much closer, has no daily GPU limit, saves your voices and takes longer text.
|
| 111 |
return path, gr.update(visible=True, value=cta_card(head, body, "result", "Hear the difference →"))
|
| 112 |
|
| 113 |
def on_submit():
|
|
@@ -203,7 +203,7 @@ Please ❤️ this Space. [Email me](mailto:tony.assi.media@gmail.com).
|
|
| 203 |
<li><b>Longer text</b></li>
|
| 204 |
</ul>""")
|
| 205 |
side_cta = gr.Button("Try the new Voice Clone free →", variant="primary", elem_id="side-cta")
|
| 206 |
-
gr.HTML('<div class="vc-small">
|
| 207 |
|
| 208 |
# Submit opens the panel first (instant), then runs the job.
|
| 209 |
go.click(fn=on_submit, inputs=None, outputs=side, queue=False)
|
|
|
|
| 79 |
gr.Warning(f"Add {what} first.", duration=8)
|
| 80 |
return None, gr.update(visible=True, value=cta_card(
|
| 81 |
f"Add {what} first.",
|
| 82 |
+
how + " Or try the new Voice Clone: much closer to the real voice, saves your voices, free to try, no card.",
|
| 83 |
position, "Try the new Voice Clone →"))
|
| 84 |
t0 = time.time()
|
| 85 |
try:
|
|
|
|
| 94 |
gr.Warning(msg, duration=10)
|
| 95 |
return None, gr.update(visible=True, value=cta_card(
|
| 96 |
"You've used today's free GPU time here.",
|
| 97 |
+
"It resets in 24 hours. To keep going right now, Voice Clone has no queue and is free to try. No card needed.",
|
| 98 |
"quota", "Keep going on Voice Clone →"))
|
| 99 |
log_event("error")
|
| 100 |
raise
|
|
|
|
| 104 |
# Only talk about speed when this run was actually slow; otherwise lead with what the new one does better.
|
| 105 |
if secs >= 10:
|
| 106 |
head = f"That took {secs} seconds on the free model."
|
| 107 |
+
body = "The new Voice Clone takes about 2, with no queue, and sounds much closer to the real voice. It also saves your voices and takes longer text. Free to try, no card."
|
| 108 |
else:
|
| 109 |
head = "Want it closer to the real voice?"
|
| 110 |
+
body = "The new Voice Clone sounds much closer, has no daily GPU limit, saves your voices and takes longer text. Free to try, no card."
|
| 111 |
return path, gr.update(visible=True, value=cta_card(head, body, "result", "Hear the difference →"))
|
| 112 |
|
| 113 |
def on_submit():
|
|
|
|
| 203 |
<li><b>Longer text</b></li>
|
| 204 |
</ul>""")
|
| 205 |
side_cta = gr.Button("Try the new Voice Clone free →", variant="primary", elem_id="side-cta")
|
| 206 |
+
gr.HTML('<div class="vc-small">Free to try. No card needed.</div>')
|
| 207 |
|
| 208 |
# Submit opens the panel first (instant), then runs the job.
|
| 209 |
go.click(fn=on_submit, inputs=None, outputs=side, queue=False)
|