Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add local import. #353

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion textworld/generator/maker.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

from textworld.core import EnvInfos
from textworld.utils import make_temp_directory

from textworld.generator import Grammar
from textworld.generator.graph_networks import direction
from textworld.generator.data import KnowledgeBase
Expand Down Expand Up @@ -855,6 +854,8 @@ def render(self, interactive: bool = False):
:param save_screenshot: ONLY FOR WHEN interactive == False. Save screenshot in temp directory.
:param filename: filename for screenshot
"""
import textworld.render

game = self.build(validate=False)
return textworld.render.visualize(game, interactive=interactive)

Expand Down
Loading