awacke1 commited on
Commit
281c617
1 Parent(s): 8c6d211

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -96,7 +96,7 @@ def generate_filename(prompt, file_type):
96
  return f"{safe_date_time}_{safe_prompt}.{file_type}"
97
 
98
  def transcribe_audio(openai_key, file_path, model):
99
- openai.key = openai_key
100
  OPENAI_API_URL = "https://api.openai.com/v1/audio/transcriptions"
101
  headers = {
102
  "Authorization": f"Bearer {openai_key}",
 
96
  return f"{safe_date_time}_{safe_prompt}.{file_type}"
97
 
98
  def transcribe_audio(openai_key, file_path, model):
99
+ openai.api_key = openai_key
100
  OPENAI_API_URL = "https://api.openai.com/v1/audio/transcriptions"
101
  headers = {
102
  "Authorization": f"Bearer {openai_key}",