unable to run python ode after importing baml functions. #1637
Replies: 3 comments 4 replies
|
do you have the error? |
3 replies
|
here's a good guide as well on processing PDFs into images: https://blog.kuzudb.com/post/unstructured-data-to-graph-baml-kuzu/ |
1 reply
|
The problem is that it says "invalid authentication", which means baml isn't picking up your environment API key. Make sure you are on version 0.80.1 of baml-py and the vscode extension. And try importing the baml_client into your python file after you load_dotenv() or load your credentials into python |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
title: "Unable to run Python file using Baml code"
labels: bug, question
Issue Description
I'm new to the generative AI field and recently started using Baml for structured outputs via LLMs. I noticed that using Baml increased the accuracy of my outputs significantly, but I'm encountering issues executing my Python script that integrates with my Baml code. I've been stuck for a couple of days and would greatly appreciate any assistance in resolving this.
Baml Code
##Python Code: Extracting Bank Statement with Baml
Python
Steps Taken
I have followed all the steps from baml_cli init to generate the necessary files and configurations.
All reactions