-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Description
Describe the bug
I just followed the instruction and ran the example and getting the following error
I have verified ollama is running and I can use the models using ollama-webui
I am using following models and those are downloaded and working in webui
ollama/gemma:2b
ollama/nomic-embed-text"
Traceback (most recent call last):
File "/home/leo/dev/projs/scrapegraph/main.py", line 16, in <module>
smart_scraper_graph = SmartScraperGraph(
^^^^^^^^^^^^^^^^^^
File "/home/leo/dev/projs/scrapegraph/.venv/lib/python3.11/site-packages/scrapegraphai/graphs/smart_scraper_graph.py", line 24, in __init__
super().__init__(prompt, config, source)
File "/home/leo/dev/projs/scrapegraph/.venv/lib/python3.11/site-packages/scrapegraphai/graphs/abstract_graph.py", line 25, in __init__
self.graph = self._create_graph()
^^^^^^^^^^^^^^^^^^^^
File "/home/leo/dev/projs/scrapegraph/.venv/lib/python3.11/site-packages/scrapegraphai/graphs/smart_scraper_graph.py", line 39, in _create_graph
node_config={"chunk_size": self.model_token}
^^^^^^^^^^^^^^^^
AttributeError: 'SmartScraperGraph' object has no attribute 'model_token'
Process finished with exit code 1
To Reproduce
Steps to reproduce the behavior:
- Run Ollama using docker
- copy paste the example
- install scrapegraphai
- See error
Expected behavior
It should work seamlessly
Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):
- OS: Ubuntu 23.10
Metadata
Metadata
Assignees
Labels
No labels
