Zaherrr commited on
Commit
1394cbb
·
verified ·
1 Parent(s): 3d80d6c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -36,13 +36,14 @@ def display_example(index):
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">
41
- <div style=max-height: 300px;">
42
- {graph_html}
43
- </div>
44
- </div>
45
- """
 
46
 
47
  # Convert graph_data to a formatted JSON string
48
  json_data = json.dumps(transformed_graph_data, indent=2)
 
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">
41
+ # <div style=max-height: 300px;">
42
+ # {graph_html}
43
+ # </div>
44
+ # </div>
45
+ # """
46
+ graph_html_with_style = graph_html
47
 
48
  # Convert graph_data to a formatted JSON string
49
  json_data = json.dumps(transformed_graph_data, indent=2)