Update app.py
Browse files
app.py
CHANGED
@@ -7,9 +7,9 @@ from openai import OpenAI # Import OpenAI for AI/ML API calls
|
|
7 |
|
8 |
# Set the base URL and API key for AI/ML API
|
9 |
base_url = "https://api.aimlapi.com/v1"
|
10 |
-
api_key =
|
11 |
|
12 |
-
# Initialize the OpenAI API with the custom base URL
|
13 |
api = OpenAI(api_key=api_key, base_url=base_url)
|
14 |
|
15 |
# Load the Whisper model for audio transcription
|
|
|
7 |
|
8 |
# Set the base URL and API key for AI/ML API
|
9 |
base_url = "https://api.aimlapi.com/v1"
|
10 |
+
api_key = "701b35863e6d4a7b81bdcad2e6f3c880" # Your API key
|
11 |
|
12 |
+
# Initialize the OpenAI API with the custom base URL and your API key
|
13 |
api = OpenAI(api_key=api_key, base_url=base_url)
|
14 |
|
15 |
# Load the Whisper model for audio transcription
|