<gh_stars>1-10
from flask import Flask
from threading import Thread
import random

app = Flask("")


def run():
    app.run(host="0.0.0.0", port=random.randint(2000, 9000))


def keep_alive():
    t = Thread(target=run)
    t.start()

from flask import Flask
from threading import Thread
import random

app = Flask("")


def run():
    app.run(host="0.0.0.0", port=random.randint(2000, 9000))


def keep_alive():
    t = Thread(target=run)
    t.start()