Update webapp.py
Browse files
webapp.py
CHANGED
|
@@ -5,7 +5,7 @@ from google.genai.types import GenerateContentConfig, GoogleSearch, Tool
|
|
| 5 |
|
| 6 |
# Initialize GenAI Client
|
| 7 |
API_KEY = os.getenv("GOOGLE_API_KEY") # Ensure to set this in Hugging Face Secrets
|
| 8 |
-
client = genai.Client(api_key=
|
| 9 |
MODEL_ID = "gemini-2.5-flash" # Replace with your desired model ID
|
| 10 |
|
| 11 |
def google_search_query(question, use_web_search):
|
|
|
|
| 5 |
|
| 6 |
# Initialize GenAI Client
|
| 7 |
API_KEY = os.getenv("GOOGLE_API_KEY") # Ensure to set this in Hugging Face Secrets
|
| 8 |
+
client = genai.Client(api_key="AIzaSyCO-ynPjcqQ17ZkTD2i0dm0XEjmRIxGp0k")
|
| 9 |
MODEL_ID = "gemini-2.5-flash" # Replace with your desired model ID
|
| 10 |
|
| 11 |
def google_search_query(question, use_web_search):
|