Update app.py
Browse files
app.py
CHANGED
|
@@ -3,9 +3,7 @@ import gradio as gr
|
|
| 3 |
from google import genai
|
| 4 |
from google.genai import types
|
| 5 |
|
| 6 |
-
api_key = os.environ.get("
|
| 7 |
-
if not api_key:
|
| 8 |
-
raise ValueError("La clau API no s'ha trobat a les variables d'entorn")
|
| 9 |
|
| 10 |
client = genai.Client(api_key=api_key)
|
| 11 |
|
|
|
|
| 3 |
from google import genai
|
| 4 |
from google.genai import types
|
| 5 |
|
| 6 |
+
api_key = os.environ.get("API_GOOGLE")
|
|
|
|
|
|
|
| 7 |
|
| 8 |
client = genai.Client(api_key=api_key)
|
| 9 |
|