Update app.py
Browse files
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.
|
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}",
|