Skip to content

Commit

Permalink
fix: modal server syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
limcheekin committed Jul 12, 2024
1 parent 5f51339 commit 0042cf8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions open/text/embeddings/server/modal.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
})

cpu = float(os.getenv("CPU", 2.0))
memory = int(os.getenv("MEMORY"), 2048)
timeout = int(os.getenv("TIMEOUT"), 600)
keep_warm = int(os.getenv("KEEP_WARM"), 1)
memory = int(os.getenv("MEMORY", 2048))
timeout = int(os.getenv("TIMEOUT", 600))
keep_warm = int(os.getenv("KEEP_WARM", 1))
@stub.function(image=image, cpu=cpu, memory=memory, timeout=timeout, keep_warm=keep_warm)
@asgi_app()
def fastapi_app():
Expand Down

0 comments on commit 0042cf8

Please sign in to comment.