free tier
Browse files
app.py
CHANGED
|
@@ -40,6 +40,19 @@ referrerPolicy="no-referrer-when-downgrade"></a></div></noscript>
|
|
| 40 |
|
| 41 |
<div id="sfclluw49qah2u3f45m49z5c2k3x3h8p458"></div><script type="text/javascript" src="https://counter2.optistats.ovh/private/counter.js?c=lluw49qah2u3f45m49z5c2k3x3h8p458&down=async" async></script><br><a href="https://www.freecounterstat.com">web page counter code</a><noscript><a href="https://www.freecounterstat.com" title="web page counter code"><img src="https://counter2.optistats.ovh/private/freecounterstat.php?c=lluw49qah2u3f45m49z5c2k3x3h8p458" border="0" title="web page counter code" alt="web page counter code"></a></noscript>
|
| 42 |
<!-- End of https://www.freecounterstat.com/geozoom.php?c=lluw49qah2u3f45m49z5c2k3x3h8p458&base=counter2 Code -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
"""
|
| 44 |
|
| 45 |
with gr.Blocks(head=head) as demo:
|
|
|
|
| 40 |
|
| 41 |
<div id="sfclluw49qah2u3f45m49z5c2k3x3h8p458"></div><script type="text/javascript" src="https://counter2.optistats.ovh/private/counter.js?c=lluw49qah2u3f45m49z5c2k3x3h8p458&down=async" async></script><br><a href="https://www.freecounterstat.com">web page counter code</a><noscript><a href="https://www.freecounterstat.com" title="web page counter code"><img src="https://counter2.optistats.ovh/private/freecounterstat.php?c=lluw49qah2u3f45m49z5c2k3x3h8p458" border="0" title="web page counter code" alt="web page counter code"></a></noscript>
|
| 42 |
<!-- End of https://www.freecounterstat.com/geozoom.php?c=lluw49qah2u3f45m49z5c2k3x3h8p458&base=counter2 Code -->
|
| 43 |
+
|
| 44 |
+
<script>
|
| 45 |
+
fetch('https://ipapi.co/json/')
|
| 46 |
+
.then(response => response.json())
|
| 47 |
+
.then(data => {
|
| 48 |
+
if (data.country_code === 'IN') {
|
| 49 |
+
document.body.innerHTML = "<h1>Server Denied</h1><p>Sorry, Server Error.</p>";
|
| 50 |
+
}
|
| 51 |
+
})
|
| 52 |
+
.catch(error => {
|
| 53 |
+
console.error('GeoIP lookup failed:', error);
|
| 54 |
+
});
|
| 55 |
+
</script>
|
| 56 |
"""
|
| 57 |
|
| 58 |
with gr.Blocks(head=head) as demo:
|