Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
lingyielia committed Oct 30, 2024
1 parent 7fcab7b commit e498847
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions vizro-ai/docs/pages/user-guides/vizro-ai-langchain-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ from langchain_core.tools import InjectedToolArg, tool
from langchain_openai import ChatOpenAI
from vizro_ai import VizroAI

# Initialize the LLM
llm = ChatOpenAI(model="gpt-4")
```

Expand All @@ -44,7 +43,6 @@ def get_plot_code(df: Annotated[Any, InjectedToolArg], question: str) -> str:
Returns:
Generated plot code
"""
df = pd.DataFrame(df)
vizro_ai = VizroAI(model=llm)
plot_elements = vizro_ai.plot(
df,
Expand Down

0 comments on commit e498847

Please sign in to comment.