kavehtaheri commited on
Commit
bbbb9a3
·
verified ·
1 Parent(s): afeb9fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -543,7 +543,7 @@ def process_video(video_url, music_url, poem_verse, poet_name, username,
543
 
544
  progress(0.1, desc="Downloading video...")
545
  if "instagram.com" in video_url or "instagr.am" in video_url:
546
- INSTA_API_KEY = os.getenv("INSTA_ONEAPI_KEY")
547
  if not INSTA_API_KEY or INSTA_API_KEY == "YOUR_API_KEY_HERE": # Basic check
548
  return "Error: Instagram API Key (INSTA_ONEAPI_KEY) not configured in environment.", None
549
  downloaded_video_path = insta_oneapi(video_url, INSTA_API_KEY)
 
543
 
544
  progress(0.1, desc="Downloading video...")
545
  if "instagram.com" in video_url or "instagr.am" in video_url:
546
+ INSTA_API_KEY =os.environ.get('INSTAONEAPIKEY')
547
  if not INSTA_API_KEY or INSTA_API_KEY == "YOUR_API_KEY_HERE": # Basic check
548
  return "Error: Instagram API Key (INSTA_ONEAPI_KEY) not configured in environment.", None
549
  downloaded_video_path = insta_oneapi(video_url, INSTA_API_KEY)