Skip to content

Commit

Permalink
fix api keys issue
Browse files Browse the repository at this point in the history
  • Loading branch information
giulioco committed Nov 13, 2024
1 parent 351f2c5 commit c2bbede
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ def index():
import tempfile
import shutil

# Get API keys from form data
os.environ['GEMINI_API_KEY'] = request.form.get('gemini_key', '')
os.environ['OPENAI_API_KEY'] = request.form.get('openai_key', '')
os.environ['ELEVENLABS_API_KEY'] = request.form.get('elevenlabs_key', '')

tts_model = request.form.get('tts_model', 'gemini')

# Check if this is a news podcast request
Expand Down

0 comments on commit c2bbede

Please sign in to comment.