Spaces:
Paused
Paused
File size: 487 Bytes
bda1c1b 0b2fe49 bda1c1b 30e9d64 bda1c1b 30e9d64 bda1c1b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | from aiohttp import web
async def handle_ping(request):
return web.Response(text="🟢 Sniper Bot is Online and Running!")
async def run_server():
app = web.Application()
app.router.add_get('/', handle_ping)
runner = web.AppRunner(app)
await runner.setup()
# Hugging Face requires web servers to bind to 0.0.0.0 on port 7860
site = web.TCPSite(runner, '0.0.0.0', 7860)
await site.start()
print("🌐 Dummy web server started on port 7860") |