PYTHON run_with_ngrok.py
from flask import Flask, render_template
from pyngrok import ngrok
import threading
import time
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
if __name__ == '__main__':
# Start ngrok tunnel
public_url = ngrok.connect(5001)
print(f'\n🦆 DUCK GAME IS LIVE! 🦆')
print(f'Public URL: {public_url}')
print(f'\nShare this link and play from anywhere!\n')
# Run Flask app
app.run(host='127.0.0.1', port=5001, debug=True)