Spaces:
Runtime error
Runtime error
Update webapp.py
Browse files
webapp.py
CHANGED
|
@@ -4,7 +4,7 @@ from google import genai
|
|
| 4 |
from google.genai.types import GenerateContentConfig, GoogleSearch, Tool
|
| 5 |
|
| 6 |
# Initialize GenAI Client
|
| 7 |
-
API_KEY = os.getenv("
|
| 8 |
client = genai.Client(api_key=API_KEY)
|
| 9 |
MODEL_ID = "gemini-2.0-flash" # Replace with your desired model ID
|
| 10 |
|
|
|
|
| 4 |
from google.genai.types import GenerateContentConfig, GoogleSearch, Tool
|
| 5 |
|
| 6 |
# Initialize GenAI Client
|
| 7 |
+
API_KEY = os.getenv("API") # Ensure to set this in Hugging Face Secrets
|
| 8 |
client = genai.Client(api_key=API_KEY)
|
| 9 |
MODEL_ID = "gemini-2.0-flash" # Replace with your desired model ID
|
| 10 |
|