Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -40,8 +40,9 @@ def bot(
|
|
| 40 |
):
|
| 41 |
google_key = google_key or GOOGLE_API_KEY
|
| 42 |
if not google_key:
|
| 43 |
-
|
| 44 |
-
|
|
|
|
| 45 |
genai.configure(api_key=google_key)
|
| 46 |
generation_config = genai.types.GenerationConfig(
|
| 47 |
temperature=temperature,
|
|
|
|
| 40 |
):
|
| 41 |
google_key = google_key or GOOGLE_API_KEY
|
| 42 |
if not google_key:
|
| 43 |
+
|
| 44 |
+
raise ValueError("GOOGLE_API_KEY is not set. Please set it up.")
|
| 45 |
+
text_prompt = chatbot[-1][0]
|
| 46 |
genai.configure(api_key=google_key)
|
| 47 |
generation_config = genai.types.GenerationConfig(
|
| 48 |
temperature=temperature,
|