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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -96,6 +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_API_URL = "https://api.openai.com/v1/audio/transcriptions"
100
  headers = {
101
  "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.key = openai_key
100
  OPENAI_API_URL = "https://api.openai.com/v1/audio/transcriptions"
101
  headers = {
102
  "Authorization": f"Bearer {openai_key}",