Zaherrr commited on
Commit
da4a279
·
verified ·
1 Parent(s): 18bc43a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
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 and scrolling
39
  graph_html_with_style = f"""
40
- <div style="height: 500px;">
41
- {graph_html}
 
 
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