diff --git a/app.py b/app.py index de855c9..e2abacc 100644 --- a/app.py +++ b/app.py @@ -30,6 +30,8 @@ jwt = JWTManager(app) # Initialize Firebase Admin SDK cred = credentials.Certificate(os.getenv("GOOGLE_APPLICATION_CREDENTIALS")) +FIREBASE_BUCKET = os.getenv('FIREBASE_BUCKET') + firebase_admin.initialize_app(cred) thread_event = threading.Event() diff --git a/generate_speaking_questions.py b/generate_speaking_questions.py index 14f610c..02f7b04 100644 --- a/generate_speaking_questions.py +++ b/generate_speaking_questions.py @@ -16,10 +16,10 @@ load_dotenv() # Initialize Firebase Admin SDK cred = credentials.Certificate(os.getenv("GOOGLE_APPLICATION_CREDENTIALS")) +FIREBASE_BUCKET = os.getenv('FIREBASE_BUCKET') firebase_admin.initialize_app(cred) -FIREBASE_BUCKET = 'storied-phalanx-349916.appspot.com' VIDEO_FILES_PATH = 'download-video/' FIREBASE_SPEAKING_VIDEO_FILES_PATH = 'speaking_videos/' diff --git a/helper/constants.py b/helper/constants.py index 975a5b6..3df941c 100644 --- a/helper/constants.py +++ b/helper/constants.py @@ -1,4 +1,3 @@ -FIREBASE_BUCKET = 'storied-phalanx-349916.appspot.com' AUDIO_FILES_PATH = 'download-audio/' FIREBASE_LISTENING_AUDIO_FILES_PATH = 'listening_recordings/' VIDEO_FILES_PATH = 'download-video/' diff --git a/helper/heygen_api.py b/helper/heygen_api.py index 76b0cb1..4ff3864 100644 --- a/helper/heygen_api.py +++ b/helper/heygen_api.py @@ -16,6 +16,7 @@ load_dotenv() # Get HeyGen token TOKEN = os.getenv("HEY_GEN_TOKEN") +FIREBASE_BUCKET = os.getenv('FIREBASE_BUCKET') # POST TO CREATE VIDEO CREATE_VIDEO_URL = 'https://api.heygen.com/v1/template.generate'