Overhaul visualization page and dependency cleanup
This commit is contained in:
parent
dd2538f1ea
commit
bace83dc3a
|
@ -1,5 +1,3 @@
|
|||
from json import dump
|
||||
|
||||
from requests import get
|
||||
|
||||
from constants import URL
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
from base64 import b64encode
|
||||
from io import BytesIO
|
||||
|
||||
from app.preprocessing import create_dataframe, create_map
|
||||
|
||||
|
||||
|
@ -13,5 +10,5 @@ def create_table(df) -> str:
|
|||
def process_data(dataset):
|
||||
df = create_dataframe(dataset)
|
||||
table = create_table(df)
|
||||
map = create_map(df)
|
||||
return table, map
|
||||
create_map(df)
|
||||
return table
|
||||
|
|
|
@ -3,7 +3,9 @@
|
|||
|
||||
{% block app_content %}
|
||||
<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>
|
||||
<p><a href="{{ url_for('data') }}">Back</a></p>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in New Issue