Skip to content

Commit 27a986c

Browse files
committed
Use environmental variable for api keys
1 parent 85767e5 commit 27a986c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fastchat/serve/gradio_block_arena_vision_anony.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def is_image(file_path):
283283

284284
def pdf_parse(pdf_path):
285285
# Set API key, can also be configured in the environment
286-
api_key = "LLAMA API"
286+
api_key = os.environ["LLAMA_PARSE_KEY"]
287287

288288
# Initialize the LlamaParse object
289289
parser = LlamaParse(

0 commit comments

Comments
 (0)