Spaces:
Sleeping
Sleeping
File size: 1,097 Bytes
6b1e8b6 4fbf636 6b1e8b6 2644d0e 6b1e8b6 4fbf636 6b1e8b6 4fbf636 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | import os
import uvicorn
import nest_asyncio
from flask import Flask
from fastapi import FastAPI
app = FastAPI(
title="SAVE RESTRICTED CONTENT",
version="1.0.2",
contact={
"name": "THE RESTRICTED BOT",
"url": "https://t.me/AgainOwner",
},
docs_url=None,
redoc_url="/"
)
@app.route('/')
def home():
return """
<center>
<img src="/static/gagan.png" style="border-radius: 2px;"/>/>
</center>
<style>
body {
background: antiquewhite;
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100vh;
margin: 0;
}
footer {
text-align: center;
padding: 10px;
background: antiquewhite;
font-size: 1.2em;
}
</style>
<footer>
Made with 💕 by devgagan.in
</footer>
"""
@app.get("/status")
def status():
return {"message": "running"}
if __name__ == "__main__":
nest_asyncio.apply()
uvicorn.run(app, host="0.0.0.0", port=5000)
|