Skip to content

Commit

Permalink
Update base.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wenqiglantz authored Nov 16, 2023
1 parent 9e8fa67 commit 095e345
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llama_hub/llama_packs/llava_completion/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ def __init__(
"""Init params."""
import os

if os.environ["REPLICATE_API_TOKEN"] == "":
raise ValueError("Replicate API Token is missing.")
if not os.environ.get("REPLICATE_API_TOKEN", None):
raise ValueError("Replicate API Token is missing or blank.")

self.image_url = image_url

Expand Down

0 comments on commit 095e345

Please sign in to comment.