diff --git a/backend/pusher/main.py b/backend/pusher/main.py index 7d963b1a099..94e813823cd 100644 --- a/backend/pusher/main.py +++ b/backend/pusher/main.py @@ -4,7 +4,6 @@ import firebase_admin from fastapi import FastAPI -from modal import Image, App, asgi_app, Secret from routers import pusher if os.environ.get('SERVICE_ACCOUNT_JSON'): @@ -17,26 +16,6 @@ app = FastAPI() app.include_router(pusher.router) -modal_app = App( - name='pusher', - secrets=[Secret.from_name("gcp-credentials"), Secret.from_name('envs')], -) -image = Image.debian_slim().apt_install('ffmpeg', 'git', 'unzip').pip_install_from_requirements('requirements.txt') - - -@modal_app.function( - image=image, - keep_warm=2, - memory=(512, 1024), - cpu=2, - allow_concurrent_inputs=10, - timeout=60 * 10, -) -@asgi_app() -def api(): - return app - - paths = ['_temp', '_samples', '_segments', '_speech_profiles'] for path in paths: if not os.path.exists(path):