Download app.py from armaanuu/Yt_valid: direct link, hf CLI and curl.
- Browser
- Download file 560 Bytes
-
https://huggingface.co/spaces/armaanuu/Yt_valid/resolve/main/app.py
- Command line
-
hf download hf://spaces/armaanuu/Yt_valid/app.py
-
curl -L -o app.py https://huggingface.co/spaces/armaanuu/Yt_valid/resolve/main/app.py
560 Bytes
| from flask import Flask, jsonify, request | |
| app = Flask(__name__) | |
| def home(): | |
| return "RUNNING" | |
| def verify(): | |
| ss_url = request.args.get('ss_url') | |
| channel_handle = request.args.get('channel_handle') | |
| if not ss_url or not channel_handle: | |
| return jsonify({"error": "Missing parameters"}), 400 | |
| # Your verification logic here | |
| return jsonify({"message": "Verification complete", "valid": True}) | |
| if __name__ == '__main__': | |
| app.run(host='0.0.0.0', port=5000, debug=True) | |