Update app.py
Browse files
app.py
CHANGED
|
@@ -9,10 +9,10 @@ genai.configure(api_key=api_key)
|
|
| 9 |
|
| 10 |
# Define the model with desired generation configuration
|
| 11 |
generation_config = {
|
| 12 |
-
"temperature":
|
| 13 |
-
"top_p": 0.
|
| 14 |
-
"top_k":
|
| 15 |
-
"max_output_tokens":
|
| 16 |
"response_mime_type": "text/plain",
|
| 17 |
}
|
| 18 |
model_name = "gemini-2.0-flash-exp" # Use the updated model
|
|
|
|
| 9 |
|
| 10 |
# Define the model with desired generation configuration
|
| 11 |
generation_config = {
|
| 12 |
+
"temperature": 0.7,
|
| 13 |
+
"top_p": 0.9,
|
| 14 |
+
"top_k": 30,
|
| 15 |
+
"max_output_tokens": 3000,
|
| 16 |
"response_mime_type": "text/plain",
|
| 17 |
}
|
| 18 |
model_name = "gemini-2.0-flash-exp" # Use the updated model
|