FigmaChain is a set of Python scripts that generate HTML/CSS code based on Figma designs. Using OpenAI's GPT-3 model, FigmaChain enables developers to quickly generate HTML/CSS code from a Figma design input. It also includes a Streamlit-based chatbot interface for interactive code generation.
when I give python generateCode.py it throws this error NameError: name 'chromadb' is not defined . First time it threw module not found error, after I installed it using pip it started throwing this new error NameError. Someone please help me in fixing this.
Traceback (most recent call last):
File "generateCode.py", line 27, in
index = VectorstoreIndexCreator().from_loaders([figma_loader])
File "/Users/admin/Library/Python/3.8/lib/python/site-packages/langchain/indexes/vectorstore.py", line 71, in from_loaders
vectorstore = self.vectorstore_cls.from_documents(
File "/Users/admin/Library/Python/3.8/lib/python/site-packages/langchain/vectorstores/chroma.py", line 398, in from_documents
return cls.from_texts(
File "/Users/admin/Library/Python/3.8/lib/python/site-packages/langchain/vectorstores/chroma.py", line 359, in from_texts
chroma_collection = cls(
File "/Users/admin/Library/Python/3.8/lib/python/site-packages/langchain/vectorstores/chroma.py", line 71, in init
raise ValueError(
ValueError: Could not import chromadb python package. Please install it with pip install chromadb.
how to solve it ???
when I give python generateCode.py it throws this error NameError: name 'chromadb' is not defined . First time it threw module not found error, after I installed it using pip it started throwing this new error NameError. Someone please help me in fixing this.
Thanks in advance :).