Update app.py
Browse files
app.py
CHANGED
@@ -35,10 +35,12 @@ def display_example(index):
|
|
35 |
# Generate the graph visualization
|
36 |
graph_html = visualize_graph(transformed_graph_data)
|
37 |
|
38 |
-
# Wrap the graph HTML in a div with fixed height
|
39 |
graph_html_with_style = f"""
|
40 |
-
<div style="height: 500px;">
|
41 |
-
|
|
|
|
|
42 |
</div>
|
43 |
"""
|
44 |
|
|
|
35 |
# Generate the graph visualization
|
36 |
graph_html = visualize_graph(transformed_graph_data)
|
37 |
|
38 |
+
# Wrap the graph HTML in a div with fixed height but no scrolling
|
39 |
graph_html_with_style = f"""
|
40 |
+
<div style="height: 500px; display: flex; justify-content: center; align-items: center;">
|
41 |
+
<div style="max-width: 100%; max-height: 100%;">
|
42 |
+
{graph_html}
|
43 |
+
</div>
|
44 |
</div>
|
45 |
"""
|
46 |
|