Artples commited on
Commit
3fe2f20
1 Parent(s): 9f641f6

Rename app(14).py to app.py

Browse files
Files changed (1) hide show
  1. 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 = 'YOUR KEY'
8
  genai.configure(api_key=API_KEY)
9
 
10
  # Generation configuration
11
  generation_config = {
12
- "temperature": 1,
13
  "top_p": 0.95,
14
  "top_k": 64,
15
- "max_output_tokens": 8192,
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