Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,7 @@ from openai import OpenAI
|
|
5 |
import gradio as gr
|
6 |
|
7 |
# βββ Configure your OpenRouter key βββ
|
|
|
8 |
# Assuming OPENROUTER_API_KEY is already set in the environment or Colab secrets
|
9 |
|
10 |
# Retrieve the API key from Colab secrets
|
|
|
5 |
import gradio as gr
|
6 |
|
7 |
# βββ Configure your OpenRouter key βββ
|
8 |
+
api_key=os.getenv("OPENROUTER_API_KEY")
|
9 |
# Assuming OPENROUTER_API_KEY is already set in the environment or Colab secrets
|
10 |
|
11 |
# Retrieve the API key from Colab secrets
|