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

QNA and chart generation works flawlessly on google colab but not on local . #1607

Open
rogerbarretocode opened this issue Feb 13, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@rogerbarretocode
Copy link

rogerbarretocode commented Feb 13, 2025

System Info

windows 11 . pandas AI 3

🐛 Describe the bug

image generation and QNA works flawlessly on colab but on windows it says i dont know answer please try again and doesnt generate graphs at all

import pandasai as pai
from pandasai_openai import OpenAI

Initialize the LLM
llm = OpenAI(api_token="")

pai.config.set({
"llm": llm,
})

Load CSV
csv_path = "retailstuff222.csv"
df = pai.read_csv(csv_path)

print(df.chat("who used black friday promotion , make a chart of 10 users"))

this is the code . it gives proper answers and charts on colab but not on local

@gdcsinaptik gdcsinaptik added the bug Something isn't working label Feb 13, 2025
@gdcsinaptik
Copy link
Collaborator

Please can you share either the related log or the response object?

@pulkitmehtawork
Copy link

Please refer below and workaround for windows...i faced the same issue on windows but it runs fine on Linux OS....#1593

@rogerbarretocode
Copy link
Author

rogerbarretocode commented Feb 15, 2025

@dosu can you help me ? why are the responses better on colab than windows ?

@rogerbarretocode
Copy link
Author

@gdcsinaptik what exactly do you want me to share ? i get error response in windows and but not in colab but lately getting this issue in colab too

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants