Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -218,7 +218,7 @@ def generate_optimized_content(api_key, summarized_transcript):
|
|
218 |
def youtube_seo_pipeline(youtube_url):
|
219 |
print("Starting the SEO pipeline...") # Debugging line
|
220 |
|
221 |
-
if not YOUTUBE_API_KEY
|
222 |
return "API keys missing! Please check environment variables."
|
223 |
|
224 |
print("Extracting video ID...")
|
@@ -246,6 +246,7 @@ def youtube_seo_pipeline(youtube_url):
|
|
246 |
else:
|
247 |
return "Failed to generate SEO content."
|
248 |
|
|
|
249 |
# Define Gradio Interface
|
250 |
iface = gr.Interface(
|
251 |
fn=youtube_seo_pipeline,
|
|
|
218 |
def youtube_seo_pipeline(youtube_url):
|
219 |
print("Starting the SEO pipeline...") # Debugging line
|
220 |
|
221 |
+
if not YOUTUBE_API_KEY AND not OPENAI_API_KEY:
|
222 |
return "API keys missing! Please check environment variables."
|
223 |
|
224 |
print("Extracting video ID...")
|
|
|
246 |
else:
|
247 |
return "Failed to generate SEO content."
|
248 |
|
249 |
+
|
250 |
# Define Gradio Interface
|
251 |
iface = gr.Interface(
|
252 |
fn=youtube_seo_pipeline,
|