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

Change to using normal imports #112

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

kaixi-wang
Copy link

dependent on voxel51/fiftyone#4029

@kaixi-wang kaixi-wang self-assigned this Jan 22, 2024
from links.query_intent_classifier import classify_query_intent
from links.docs_query_dispatcher import run_docs_query, stream_docs_query
from links.computer_vision_query_dispatcher import (
from voxelgpt.links.query_moderator import moderate_query
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately we can't use this import style here because the voxelgpt.py module is also intended for direct usage via Python, in which case the code is not running as a package.

That said, the changes in this module aren't actually required right? Relative imports should be fine.

import fiftyone.operators as foo
import fiftyone.operators.types as types


from .voxelgpt import ask_voxelgpt_generator
import db
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't the idea of voxel51/fiftyone#4029 that users should adopt this style?

from voxelgpt.voxelgpt import ask_voxelgpt_generator
from voxelgpt import db

where the name of their source folder is treated as the package name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants