Spaces:
Running
Running
Rename app(14).py to app.py
Browse files- app(14).py → app.py +3 -3
app(14).py → app.py
RENAMED
@@ -4,15 +4,15 @@ from PIL import Image
|
|
4 |
import google.generativeai as genai
|
5 |
|
6 |
# Configure the API key directly in the script
|
7 |
-
API_KEY =
|
8 |
genai.configure(api_key=API_KEY)
|
9 |
|
10 |
# Generation configuration
|
11 |
generation_config = {
|
12 |
-
"temperature":
|
13 |
"top_p": 0.95,
|
14 |
"top_k": 64,
|
15 |
-
"max_output_tokens":
|
16 |
"response_mime_type": "text/plain",
|
17 |
}
|
18 |
|
|
|
4 |
import google.generativeai as genai
|
5 |
|
6 |
# Configure the API key directly in the script
|
7 |
+
API_KEY = os.environ.get("GOOGLE_API_KEY")
|
8 |
genai.configure(api_key=API_KEY)
|
9 |
|
10 |
# Generation configuration
|
11 |
generation_config = {
|
12 |
+
"temperature": 0.8,
|
13 |
"top_p": 0.95,
|
14 |
"top_k": 64,
|
15 |
+
"max_output_tokens": 50000,
|
16 |
"response_mime_type": "text/plain",
|
17 |
}
|
18 |
|