Numeri/flaskapp.py
2022-09-18 15:11:54 +02:00

18 lines
438 B
Python

import io
from flask import Flask, render_template
app = Flask("Project Numeri")
from plots import Cijferlijst
import base64
cf = Cijferlijst()
import matplotlib.pyplot as plt
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
from matplotlib.figure import Figure
@app.route('/')
def index():
return render_template('index.html', title="joe", imgdata=None)
def RunWeb():
app.run(debug=True, port=5002)