Skip to content

Commit

Permalink
Fix error in VAD
Browse files Browse the repository at this point in the history
  • Loading branch information
thainguyensunya committed Dec 9, 2024
1 parent 8fa3b11 commit f704b1a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions backend/modal/vad_modal.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
os.makedirs('_temp', exist_ok=True)


@app.function(
image=image,
keep_warm=1,
memory=(1024, 2048),
cpu=4,
secrets=[Secret.from_name('huggingface-token')],
)
@web_endpoint(method='POST')
# @app.function(
# image=image,
# keep_warm=1,
# memory=(1024, 2048),
# cpu=4,
# secrets=[Secret.from_name('huggingface-token')],
# )
# @web_endpoint(method='POST')
def endpoint(file: UploadFile):
upload_id = str(uuid.uuid4())
file_path = f"_temp/{upload_id}_{file.filename}"
Expand Down

0 comments on commit f704b1a

Please sign in to comment.