Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -302,10 +302,7 @@ async def process_input(input_text: str, input_file, language: str, speaker1: st
|
|
| 302 |
if progress:
|
| 303 |
progress(0.05, "Processing input...")
|
| 304 |
|
| 305 |
-
|
| 306 |
-
api_key = os.getenv("GENAI_API_KEY")
|
| 307 |
-
if not api_key:
|
| 308 |
-
raise Exception("No API key provided. Please provide a Gemini API key.")
|
| 309 |
|
| 310 |
podcast_generator = PodcastGenerator()
|
| 311 |
podcast = await podcast_generator.generate_podcast(input_text, language, speaker1, speaker2, api_key, input_file, progress)
|
|
|
|
| 302 |
if progress:
|
| 303 |
progress(0.05, "Processing input...")
|
| 304 |
|
| 305 |
+
api_key = "" # No API key needed for local model
|
|
|
|
|
|
|
|
|
|
| 306 |
|
| 307 |
podcast_generator = PodcastGenerator()
|
| 308 |
podcast = await podcast_generator.generate_podcast(input_text, language, speaker1, speaker2, api_key, input_file, progress)
|