donb-hf commited on
Commit
3f94694
Β·
verified Β·
1 Parent(s): 02b2f58

remove subplots

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -63,7 +63,6 @@ def add_to_graph(
63
 
64
  return search_string, fig
65
 
66
-
67
  def create_plotly_graph(graph: nx.DiGraph) -> go.Figure:
68
  pos: Dict[Any, Tuple[float, float]] = nx.spring_layout(graph)
69
 
@@ -123,7 +122,7 @@ def create_plotly_graph(graph: nx.DiGraph) -> go.Figure:
123
  )
124
 
125
  # Create the figure and add traces
126
- fig = make_subplots()
127
  fig.add_trace(edge_trace)
128
  fig.add_trace(node_trace)
129
  fig.update_layout(
 
63
 
64
  return search_string, fig
65
 
 
66
  def create_plotly_graph(graph: nx.DiGraph) -> go.Figure:
67
  pos: Dict[Any, Tuple[float, float]] = nx.spring_layout(graph)
68
 
 
122
  )
123
 
124
  # Create the figure and add traces
125
+ fig = go.Figure()
126
  fig.add_trace(edge_trace)
127
  fig.add_trace(node_trace)
128
  fig.update_layout(