Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ app = FastAPI()
|
|
8 |
|
9 |
# Initialize OpenAI client once when the app starts
|
10 |
client = AsyncOpenAI(
|
11 |
-
api_key=os.getenv("
|
12 |
)
|
13 |
|
14 |
async def generate_ai_response(prompt: str):
|
|
|
8 |
|
9 |
# Initialize OpenAI client once when the app starts
|
10 |
client = AsyncOpenAI(
|
11 |
+
api_key=os.getenv("GITHUB_TOKEN") # Get API key from environment variable
|
12 |
)
|
13 |
|
14 |
async def generate_ai_response(prompt: str):
|