Download web_interface.py from abhay2245/agoft: direct link, hf CLI and curl.
- Browser
- Download file 530 Bytes
-
https://huggingface.co/spaces/abhay2245/agoft/resolve/main/web_interface.py
- Command line
-
hf download hf://spaces/abhay2245/agoft/web_interface.py
-
curl -L -o web_interface.py https://huggingface.co/spaces/abhay2245/agoft/resolve/main/web_interface.py
530 Bytes
| from flask import Flask | |
| import threading | |
| import time | |
| app = Flask(__name__) | |
| def home(): | |
| return ''' | |
| <html> | |
| <head><title>Ultroid Status</title></head> | |
| <body> | |
| <h1>🤖 Ultroid Userbot</h1> | |
| <p>Status: Running on Hugging Face Spaces</p> | |
| <p>Bot is active in the background!</p> | |
| </body> | |
| </html> | |
| ''' | |
| def status(): | |
| return {"status": "running", "message": "Ultroid is active"} | |
| if __name__ == '__main__': | |
| app.run(host='0.0.0.0', port=7860) | |