Skip to content

AttributeError: 'NoneType' object has no attribute 'strip' #9

Description

@docholiday

Hi there, I wanted to give your tool a try, but I'm running in the error in the title.

Traceback:

File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script
exec(code, module.dict)
File "/mount/src/csv-ai/app.py", line 274, in
main()
File "/mount/src/csv-ai/app.py", line 263, in main
summary(model_name=model_name, temperature=temperature, top_p=top_p, freq_penalty=freq_penalty)
File "/mount/src/csv-ai/app.py", line 124, in summary
data = loader.load()
File "/home/adminuser/venv/lib/python3.9/site-packages/langchain/document_loaders/csv_loader.py", line 62, in load
content = "\n".join(f"{k.strip()}: {v.strip()}" for k, v in row.items())
File "/home/adminuser/venv/lib/python3.9/site-packages/langchain/document_loaders/csv_loader.py", line 62, in
content = "\n".join(f"{k.strip()}: {v.strip()}" for k, v in row.items())

Do you have any idea what the problem might be?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions