Overhaul visualization page and dependency cleanup

This commit is contained in:
coolneng 2020-06-14 19:07:30 +02:00
parent dd2538f1ea
commit bace83dc3a
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
3 changed files with 5 additions and 8 deletions

View File

@ -1,5 +1,3 @@
from json import dump
from requests import get from requests import get
from constants import URL from constants import URL

View File

@ -1,6 +1,3 @@
from base64 import b64encode
from io import BytesIO
from app.preprocessing import create_dataframe, create_map from app.preprocessing import create_dataframe, create_map
@ -13,5 +10,5 @@ def create_table(df) -> str:
def process_data(dataset): def process_data(dataset):
df = create_dataframe(dataset) df = create_dataframe(dataset)
table = create_table(df) table = create_table(df)
map = create_map(df) create_map(df)
return table, map return table

View File

@ -3,7 +3,9 @@
{% block app_content %} {% block app_content %}
<h1>Dataset visualization</h1> <h1>Dataset visualization</h1>
<iframe class="map", src="/map" width="500" height="500"></iframe> <iframe class="map", src="/map" width="400" height="400"></iframe>
<table style="margin-left: 350px;">
{{ table|safe }} {{ table|safe }}
</table>
<p><a href="{{ url_for('data') }}">Back</a></p> <p><a href="{{ url_for('data') }}">Back</a></p>
{% endblock %} {% endblock %}