You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
357 B
Python
16 lines
357 B
Python
import json
|
|
from flask import Flask, render_template, request, jsonify
|
|
app = Flask(__name__)
|
|
|
|
@app.route('/')
|
|
def index():
|
|
return render_template('index.html')
|
|
|
|
@app.route('/download', methods=['POST'])
|
|
def downloadModel():
|
|
modelNodeStates = request.get_json()
|
|
print(modelNodeStates)
|
|
return 'OK', 200
|
|
|
|
if __name__ == '__main__':
|
|
app.run() |