14 lines
278 B
Python
Executable File
14 lines
278 B
Python
Executable File
from flask import Flask, send_file, render_template, request
|
|
|
|
import subprocess
|
|
|
|
app = Flask(__name__)
|
|
|
|
@app.route('/')
|
|
def index():
|
|
return render_template('index.html')
|
|
|
|
if __name__ == '__main__':
|
|
subprocess.run(["python3", "make_db.py"])
|
|
app.run(host='0.0.0.0', port=8000)
|