Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mandel committed Sep 3, 2024
1 parent d18d8b4 commit c1e2c4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions examples/sdk/hello_str.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from pdl.pdl import exec_str

hello = """
HELLO = """
document:
- Hello,
- model: watsonx/ibm/granite-20b-code-instruct
Expand All @@ -13,7 +13,7 @@


def main():
result = exec_str(hello)
result = exec_str(HELLO)
print(result)


Expand Down
5 changes: 1 addition & 4 deletions pdl/pdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,15 @@

from . import pdl_interpreter
from .pdl_ast import (
BlocksType,
CallBlock,
LocationType,
Message,
PdlBlock,
PdlBlocks,
Program,
RoleType,
ScopeType,
empty_block_location,
)
from .pdl_interpreter import InterpreterState, process_prog, step_call
from .pdl_interpreter import InterpreterState, process_prog
from .pdl_parser import parse_file, parse_str


Expand Down

0 comments on commit c1e2c4f

Please sign in to comment.