Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,10 @@ def display_example(index):
|
|
34 |
|
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: 300px; justify-content: center; align-items: center;overflow-y: auto">
|
|
|
34 |
|
35 |
# Generate the graph visualization
|
36 |
graph_html = visualize_graph(transformed_graph_data)
|
37 |
+
|
38 |
+
# Modify the iframe to have a fixed height
|
39 |
+
graph_html = graph_html.replace('height: 100vh;', 'height: 500px;')
|
40 |
+
|
41 |
# Wrap the graph HTML in a div with fixed height but no scrolling
|
42 |
# graph_html_with_style = f"""
|
43 |
# <div style="height: 300px; justify-content: center; align-items: center;overflow-y: auto">
|