Skip to content

Commit

Permalink
Pass formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
neoxelox committed Feb 12, 2024
1 parent 8d0aa56 commit bc1cb96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dspy_inspector/inspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@
from enum import Enum
from functools import partial
from pprint import pprint
from typing import Callable, List, Optional, Tuple
from threading import Timer
from typing import Callable, List, Optional, Tuple

import dsp
import dspy
import ipycytoscape as cytoscape
import ipywidgets as widgets
import tiktoken


with open(os.path.join(os.path.dirname(__file__), "styles.css"), "r") as file:
_styles_css = file.read()

Expand Down Expand Up @@ -904,7 +903,8 @@ def _parse_program(
nodes.extend(predictor_nodes)
edges.extend(predictor_edges)
elif isinstance(module, dspy.Program):
# TODO: how to get sub-programs?? Check: dspy.BaseModule.named_parameters func --> dont use named_parameter and instead do the whole logic here
# TODO: how to get sub-programs?? Check: dspy.BaseModule.named_parameters func
# --> don't use named_parameters, do the whole logic here instead
program_nodes, program_edges = _parse_program(attribute, module, this)
nodes.extend(program_nodes)
edges.extend(program_edges)
Expand Down

0 comments on commit bc1cb96

Please sign in to comment.