Skip to content

Python scraper based on AI

fixed image_to_tex_node and refactoring

VinciGit00c9951340b51a
diff --git a/scrapegraphai/graphs/smart_scraper_graph.py b/scrapegraphai/graphs/smart_scraper_graph.py
index 0bfda6fc..16e42b81 100644
--- a/scrapegraphai/graphs/smart_scraper_graph.py
+++ b/scrapegraphai/graphs/smart_scraper_graph.py
@@ -71,8 +71,7 @@ class SmartScraperGraph:
return OpenAI(llm_params)
elif "gemini" in llm_params["model"]:
return Gemini(llm_params)
- else:
- raise ValueError("Model not supported")
+ raise ValueError("Model not supported")
def _create_graph(self):
"""
diff --git a/scrapegraphai/models/gemini.py b/scrapegraphai/models/gemini.py
index 95ee2d57..e35fd684 100644
--- a/scrapegraphai/models/gemini.py
+++ b/scrapegraphai/models/gemini.py
@@ -1,3 +1,6 @@
+"""
+Gemini module configuration
+"""
from langchain_google_genai import ChatGoogleGenerativeAI