Prabhas Jupalli commited on
Commit
c6ac3fc
·
1 Parent(s): 7cd5f2b
backend/radial_mapper.py CHANGED
@@ -19,6 +19,7 @@ dimension, then A's 2D point will have x_A ≥ x_B and y_A ≥ y_B.
19
  """
20
 
21
  import math
 
22
 
23
 
24
  def _axis_length(b: int, theta: float, x_len: float, y_len: float) -> float:
@@ -62,7 +63,7 @@ def _axis_length(b: int, theta: float, x_len: float, y_len: float) -> float:
62
 
63
  def polyline_to_2d(
64
  module_scores: list,
65
- num_topics: int | None = None,
66
  x_len: float = 19.0,
67
  y_len: float = 19.0,
68
  ) -> tuple:
@@ -162,7 +163,7 @@ def map_to_grid(
162
 
163
  def polyline_to_grid(
164
  module_scores: list,
165
- num_topics: int | None = None,
166
  x_len: float = 19.0,
167
  y_len: float = 19.0,
168
  grid_size: int = 20,
 
19
  """
20
 
21
  import math
22
+ from typing import Optional
23
 
24
 
25
  def _axis_length(b: int, theta: float, x_len: float, y_len: float) -> float:
 
63
 
64
  def polyline_to_2d(
65
  module_scores: list,
66
+ num_topics: Optional[int] = None,
67
  x_len: float = 19.0,
68
  y_len: float = 19.0,
69
  ) -> tuple:
 
163
 
164
  def polyline_to_grid(
165
  module_scores: list,
166
+ num_topics: Optional[int] = None,
167
  x_len: float = 19.0,
168
  y_len: float = 19.0,
169
  grid_size: int = 20,
src/components/ControlPanel.tsx CHANGED
@@ -314,14 +314,7 @@ export const ControlPanel: React.FC<ControlPanelProps> = ({
314
  History
315
  </button>
316
 
317
- <button
318
- onClick={onPlayPath}
319
- disabled={learningPath.length < 2 || isLoading}
320
- className="col-span-2 flex items-center justify-center gap-2 py-2.5 px-4 bg-white border border-gray-200 hover:bg-gray-50 disabled:bg-gray-50 disabled:text-gray-400 text-gray-700 text-sm rounded-xl font-medium transition-all"
321
- >
322
- <PlayCircle className="w-4 h-4 text-green-500" />
323
- Play Path Animation
324
- </button>
325
  </div>
326
 
327
  <button
 
314
  History
315
  </button>
316
 
317
+
 
 
 
 
 
 
 
318
  </div>
319
 
320
  <button