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

Issue with relative import in variables.py #1

Open
kueblersimon opened this issue Oct 21, 2024 · 0 comments
Open

Issue with relative import in variables.py #1

kueblersimon opened this issue Oct 21, 2024 · 0 comments

Comments

@kueblersimon
Copy link

I'm a beginner in Python and encountered an issue with the import of variables in the single_request_chatgpt.py script. (As far as I can see, it is the same in the other single_request's too.)

from .variables import prompt, gpt_role_description, temperature, base64_image

For the current folder setup and instructions, I had to change the import statement in my setup to:

- from .variables import prompt, gpt_role_description, temperature, base64_image
+ from variables import prompt, gpt_role_description, temperature, base64_image

I hope this helps others who might run into a similar issue!

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

No branches or pull requests

1 participant