Skip to content

Commit

Permalink
amazon-chronos v0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
attilabalint committed Apr 25, 2024
1 parent 36b594f commit f0ab1d1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions models/amazon-chronos/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ RUN pip install --no-cache-dir -r /usr/local/app/requirements.txt
COPY ./models /usr/local/app/models
COPY ./src /usr/local/app/src

ENV MODEL_NAME="chronos-t5-tiny"
ENV NUM_SAMPLES="20"
ENV ENFOBENCH_MODEL_NAME="chronos-t5-tiny"
ENV ENFOBENCH_NUM_SAMPLES="20"

EXPOSE 3000
CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "3000"]
Empty file.
4 changes: 2 additions & 2 deletions models/amazon-chronos/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ def forecast(
return forecast


model_name = os.getenv("MODEL_NAME")
num_samples = int(os.getenv("NUM_SAMPLES"))
model_name = os.getenv("ENFOBENCH_MODEL_NAME")
num_samples = int(os.getenv("ENFOBENCH_NUM_SAMPLES"))

# Instantiate your model
model = AmazonChronosModel(model_name=model_name, num_samples=num_samples)
Expand Down

0 comments on commit f0ab1d1

Please sign in to comment.