Update app.py

#1
by Daemontatox - opened
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -6,9 +6,12 @@ from pydub import AudioSegment
6
  import whisper
7
  import json
8
  import requests
 
 
 
9
 
10
  # Configuration
11
- OPENROUTER_API_KEY = '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'
12
  OPENROUTER_MODEL = "tngtech/deepseek-r1t-chimera:free"
13
  TARGET_RESOLUTION = (1080, 1920)
14
  OUTPUT_VIDEO_FILENAME = "final_video.mp4"
 
6
  import whisper
7
  import json
8
  import requests
9
+ from dotenv import load_dotenv
10
+ load_dotenv()
11
+
12
 
13
  # Configuration
14
+ OPENROUTER_API_KEY = os.getenv("OPENROUTER_API_KEY")
15
  OPENROUTER_MODEL = "tngtech/deepseek-r1t-chimera:free"
16
  TARGET_RESOLUTION = (1080, 1920)
17
  OUTPUT_VIDEO_FILENAME = "final_video.mp4"