Update app.py
Browse files
app.py
CHANGED
|
@@ -171,8 +171,9 @@ def generate_prompt(query: str, context_snippets: list) -> str:
|
|
| 171 |
# return answer
|
| 172 |
|
| 173 |
def get_gemini_flash_response(prompt: str) -> str:
|
| 174 |
-
|
| 175 |
-
from google.
|
|
|
|
| 176 |
|
| 177 |
# Create a Gemini client using the API key from the environment.
|
| 178 |
client = genai.Client(api_key=GEMINI_API_KEY)
|
|
|
|
| 171 |
# return answer
|
| 172 |
|
| 173 |
def get_gemini_flash_response(prompt: str) -> str:
|
| 174 |
+
import google.generativeai as genai
|
| 175 |
+
from google.generativeai import types
|
| 176 |
+
|
| 177 |
|
| 178 |
# Create a Gemini client using the API key from the environment.
|
| 179 |
client = genai.Client(api_key=GEMINI_API_KEY)
|