adnaan05 commited on
Commit
f8294c1
·
verified ·
1 Parent(s): 225463a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = os.getenv("701b35863e6d4a7b81bdcad2e6f3c880") # Make sure to set this environment variable
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