agoft / web_interface.py
abhay2245's picture
Create web_interface.py
268818d verified
from flask import Flask
import threading
import time
app = Flask(__name__)
@app.route('/')
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>
'''
@app.route('/status')
def status():
return {"status": "running", "message": "Ultroid is active"}
if __name__ == '__main__':
app.run(host='0.0.0.0', port=7860)