Spaces:
Sleeping
Sleeping
Commit
•
0251fb3
1
Parent(s):
6222f8f
Update app.py
Browse files
app.py
CHANGED
@@ -247,26 +247,6 @@ async def text_to_speech_edge(text, language_code):
|
|
247 |
await communicate.save(tmp_path)
|
248 |
return f"Speech synthesis completed for: {text}", tmp_path
|
249 |
|
250 |
-
|
251 |
-
# HTML code for the ad banner
|
252 |
-
ad_code = """
|
253 |
-
<div style="text-align: center;">
|
254 |
-
<iframe src="https://www.fiverr.com/gig_widgets?id=U2FsdGVkX1+9vQaosK0mq7xGXzIb/5hdFYIQsmHlpeMwFm5gingveDZKXBz2oJwV7ZwvToxseOx/KzKtr77ryB3qTb83/+GvCyI8OKpZcSgM0sDHzEPlZnqNeu8Db4y/IXlAceA1UcYT5Z3cW5vBLrgJ/WOpyMWSiyfwwMmGngjltQBexcivW7ukRd+/0yos7GCbfGjGdnLPHm2LB/CB9w2mA1i8cVv9LU+UUdj/O5KLRXtnychl9wAMkPTpmwMiyuAfUZy0nbK/Xa5O2UecmCvn7wicTr0TCTpLmIxaEh3YftXOVr9e36OGVYTmy5nlsgujkqJPI7wL0dXfon0ru4kvoycC7UD6m/whMoxrWZOf386qV2eEeXzk3vKO/emXUUfSavtofzSBtjLcyAOVhnHJg27PvVPgvFTQdy0o3F1M0DaHYTVW3Ln45MPYvMSH&affiliate_id=36184&strip_google_tagmanager=true" loading="lazy" data-with-title="false" class="fiverr_nga_frame" frameborder="0" height="350" width="100%" referrerpolicy="no-referrer-when-downgrade" data-mode="random_gigs" onload=" var frame = this; var script = document.createElement('script'); script.addEventListener('load', function() { window.FW_SDK.register(frame); }); script.setAttribute('src', 'https://www.fiverr.com/gig_widgets/sdk'); document.body.appendChild(script); " ></iframe>
|
255 |
-
</div>
|
256 |
-
"""
|
257 |
-
|
258 |
-
# HTML code for the ad banner
|
259 |
-
ad_code2 = """
|
260 |
-
<div style="text-align: center;">
|
261 |
-
<a href="https://beta.publishers.adsterra.com/referral/UNXJYTziBP" target="_blank" style="display: inline-block;">
|
262 |
-
<img decoding="async" alt="banner" src="https://landings-cdn.adsterratech.com/referralBanners/gif/468x120_adsterra_reff.gif">
|
263 |
-
</a>
|
264 |
-
<a href="https://go.fiverr.com/visit/?bta=36184&brand=fiverrcpa&landingPage=https%253A%252F%252Fwww.fiverr.com%252Fcategories%252Fprogramming-tech%252Fai-coding%252Fai-applications%253Fsource%253Dcategory_tree" target="_blank" style="display: inline-block;">
|
265 |
-
<img fetchpriority="high" decoding="async" width="468" height="120" src="https://ziverr.xyz/wp-content/uploads/2024/06/PASSIVE-1.gif" class="attachment-large size-large wp-image-1266" alt="">
|
266 |
-
</a>
|
267 |
-
</div>
|
268 |
-
"""
|
269 |
-
|
270 |
input_text = gr.Textbox(lines=5, label="Input Text")
|
271 |
output_text = gr.Textbox(label="Output Text")
|
272 |
output_audio = gr.Audio(type="filepath", label="Exported Audio")
|
@@ -278,8 +258,6 @@ iface = gr.Blocks()
|
|
278 |
|
279 |
with iface:
|
280 |
|
281 |
-
gr.HTML(ad_code2)
|
282 |
-
|
283 |
gr.Interface(
|
284 |
fn=text_to_speech_edge,
|
285 |
inputs=[input_text, language],
|
@@ -287,8 +265,6 @@ with iface:
|
|
287 |
title="Edge TTS",
|
288 |
description="Microsoft Edge Text-To-Speech (Forked & Fixed Ilaria TTS)",
|
289 |
)
|
290 |
-
|
291 |
-
gr.HTML(ad_code)
|
292 |
|
293 |
iface.launch()
|
294 |
|
|
|
247 |
await communicate.save(tmp_path)
|
248 |
return f"Speech synthesis completed for: {text}", tmp_path
|
249 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
250 |
input_text = gr.Textbox(lines=5, label="Input Text")
|
251 |
output_text = gr.Textbox(label="Output Text")
|
252 |
output_audio = gr.Audio(type="filepath", label="Exported Audio")
|
|
|
258 |
|
259 |
with iface:
|
260 |
|
|
|
|
|
261 |
gr.Interface(
|
262 |
fn=text_to_speech_edge,
|
263 |
inputs=[input_text, language],
|
|
|
265 |
title="Edge TTS",
|
266 |
description="Microsoft Edge Text-To-Speech (Forked & Fixed Ilaria TTS)",
|
267 |
)
|
|
|
|
|
268 |
|
269 |
iface.launch()
|
270 |
|