Skip to content

Commit

Permalink
Add time.sleep(0.1) to build_regex_from_schema()
Browse files Browse the repository at this point in the history
  • Loading branch information
lapp0 committed May 30, 2024
1 parent acdb5c4 commit 4accc18
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions outlines/fsm/json_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ def build_regex_from_schema(schema: str, whitespace_pattern: Optional[str] = Non
.. [0] JSON Schema. https://json-schema.org/
"""
import time

time.sleep(0.1)

schema = json.loads(schema)
Validator.check_schema(schema)
Expand Down

0 comments on commit 4accc18

Please sign in to comment.