Skip to content

Commit

Permalink
feat: add custom layer
Browse files Browse the repository at this point in the history
  • Loading branch information
RaoHai committed Apr 15, 2024
1 parent fe528f0 commit e5fc349
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@

open_api_key = get_env_variable("OPENAI_API_KEY")
is_dev = bool(get_env_variable("IS_DEV"))
task_root = get_env_variable("LAMBDA_TASK_ROOT")

if task_root:
os.environ["NLTK_DATA"] = os.path.join(task_root, "nltk_data")

app = FastAPI(
title="Bo-meta Server",
Expand Down

0 comments on commit e5fc349

Please sign in to comment.