Spaces:
Running
Running
Commit
•
cc33f45
1
Parent(s):
9f054c9
Update app.py
Browse files
app.py
CHANGED
@@ -90,27 +90,8 @@ def generate_response(user_input, chat_history):
|
|
90 |
return response.text, tts_result, chat_history
|
91 |
|
92 |
|
93 |
-
# HTML code for the ad banner
|
94 |
-
ad_code = """
|
95 |
-
<div style="text-align: center;">
|
96 |
-
<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>
|
97 |
-
</div>
|
98 |
-
"""
|
99 |
-
|
100 |
-
# HTML code for the ad banner
|
101 |
-
ad_code2 = """
|
102 |
-
<div style="text-align: center;">
|
103 |
-
<a href="https://beta.publishers.adsterra.com/referral/UNXJYTziBP" target="_blank" style="display: inline-block;">
|
104 |
-
<img decoding="async" alt="banner" src="https://landings-cdn.adsterratech.com/referralBanners/gif/468x120_adsterra_reff.gif">
|
105 |
-
</a>
|
106 |
-
<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;">
|
107 |
-
<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="">
|
108 |
-
</a>
|
109 |
-
</div>
|
110 |
-
"""
|
111 |
|
112 |
with gr.Blocks() as iface:
|
113 |
-
gr.HTML(ad_code)
|
114 |
gr.Interface(
|
115 |
fn=generate_response,
|
116 |
inputs=[
|
@@ -125,6 +106,5 @@ with gr.Blocks() as iface:
|
|
125 |
title="AI Donald Trump",
|
126 |
description="Contact me if you want another character/voice<br>WhatsApp me: +92-332-4399819<br> Email me: aheedsajid@gmail.com<br><b>Donate something to increase GPU power</b><br>[Click here to Donate](https://nowpayments.io/donation/aheed)<br>Please duplicate the space if you get an error!"
|
127 |
)
|
128 |
-
gr.HTML(ad_code2)
|
129 |
|
130 |
iface.launch()
|
|
|
90 |
return response.text, tts_result, chat_history
|
91 |
|
92 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
|
94 |
with gr.Blocks() as iface:
|
|
|
95 |
gr.Interface(
|
96 |
fn=generate_response,
|
97 |
inputs=[
|
|
|
106 |
title="AI Donald Trump",
|
107 |
description="Contact me if you want another character/voice<br>WhatsApp me: +92-332-4399819<br> Email me: aheedsajid@gmail.com<br><b>Donate something to increase GPU power</b><br>[Click here to Donate](https://nowpayments.io/donation/aheed)<br>Please duplicate the space if you get an error!"
|
108 |
)
|
|
|
109 |
|
110 |
iface.launch()
|