Clarifying the secrets

This commit is contained in:
Edward Donner
2025-04-30 15:45:32 -04:00
parent 17f797c024
commit d500dc2906
3 changed files with 20 additions and 6 deletions

View File

@@ -5,6 +5,9 @@ from modal import App, Image
app = modal.App("pricer-service")
image = Image.debian_slim().pip_install("torch", "transformers", "bitsandbytes", "accelerate", "peft")
# This collects the secret from Modal.
# Depending on your Modal configuration, you may need to replace "hf-secret" with "huggingface-secret"
secrets = [modal.Secret.from_name("hf-secret")]
# Constants