Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Li-Evelyn committed Mar 28, 2020
2 parents f5c90d4 + 70e392d commit 45bb161
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from flask import Flask
from flask import render_template
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
Expand All @@ -8,5 +9,5 @@
app = Flask(__name__)
@app.route('/')
def hello_world():
return graphs_test.get_data()
return render_template("index.html", data=graphs_test.get_data())

3 changes: 2 additions & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
</head>

<body>

<p> Hello world </p>
<p> {{ data }} </p>
</body>
</html>

0 comments on commit 45bb161

Please sign in to comment.