from flask import Flask
from threading import Thread
import time
import random
a='test'
def name():
while True:
time.sleep(1)
letters = 'test'
a=''.join(random.choice(letters) for i in range(len(letters)))
th = Thread(target=name)
th.start()
app = Flask(__name__)
@app.route("/")
def hello():
return a
if __name__ == "__main__":
app.run()