Spaces:
Sleeping
Sleeping
from flask import Flask | |
from flask import send_from_directory | |
app = Flask(__name__) | |
def home(): | |
return 'Hello, World!' | |
def send_report(path): | |
if path.endswith("/"): | |
path = path+ "index.html" | |
return send_from_directory('ieltsonline.com', path) | |
def about(): | |
return 'About' | |
def run(): | |
app.run("0.0.0.0", 7860) | |
if __name__ == '__main__': | |
app.run("0.0.0.0",3001) |