Skip to content

Commit

Permalink
Trying to increase memory allocation fo the embed function from 256MB…
Browse files Browse the repository at this point in the history
… (default) to 512MB due to OOM #48
  • Loading branch information
MrCsabaToth committed Oct 18, 2024
1 parent 53b61b6 commit 9eb2507
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion functions/fn_impl/embed.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from firebase_functions import https_fn
from firebase_functions import https_fn , options, storage_fn
from firebase_admin import initialize_app, storage
import firebase_admin
import json
Expand All @@ -12,6 +12,7 @@


@https_fn.on_request()
@storage_fn.on_object_finalized(timeout_sec=300, memory=options.MemoryOption.MB_512)
def embed(req: https_fn.Request) -> https_fn.Response:
"""Synthesizes speech from the input string of text or ssml.
Returns:
Expand Down

0 comments on commit 9eb2507

Please sign in to comment.