Spaces:
Sleeping
Sleeping
File size: 432 Bytes
2505f46 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# config.py
import os
from dotenv import load_dotenv
from amadeus import Client
# Load environment variables from the .env file
load_dotenv()
# Retrieve the credentials from the environment
AMADEUS_CLIENT_ID = os.getenv("AMADEUS_CLIENT_ID")
AMADEUS_CLIENT_SECRET = os.getenv("AMADEUS_CLIENT_SECRET")
# Initialize the Amadeus API Client
amadeus = Client(
client_id=AMADEUS_CLIENT_ID,
client_secret=AMADEUS_CLIENT_SECRET
)
|