Zaherrr commited on
Commit
499f2d6
·
verified ·
1 Parent(s): c6b2d7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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">