Spaces:
Running on Zero
Running on Zero
Asmit Nayak commited on
Commit ·
4c8ef47
1
Parent(s): 385417e
Adjust temperature and max output tokens for content generation
Browse files
py_files/gemini_analysis.py
CHANGED
|
@@ -122,10 +122,10 @@ def few_shots_generator(eval_dir='./eval', files=None, api_key=None):
|
|
| 122 |
contents=data,
|
| 123 |
config=types.GenerateContentConfig(
|
| 124 |
system_instruction=textsi_1,
|
| 125 |
-
temperature=
|
| 126 |
top_p=0.1,
|
| 127 |
top_k=1,
|
| 128 |
-
max_output_tokens=
|
| 129 |
safety_settings=[
|
| 130 |
types.SafetySetting(category='HARM_CATEGORY_HARASSMENT', threshold='BLOCK_NONE'),
|
| 131 |
types.SafetySetting(category='HARM_CATEGORY_HATE_SPEECH', threshold='BLOCK_NONE'),
|
|
@@ -321,10 +321,10 @@ def thinking_generator(eval_dir="./eval", files=None, api_key=None):
|
|
| 321 |
contents=data,
|
| 322 |
config=types.GenerateContentConfig(
|
| 323 |
system_instruction=textsi_1,
|
| 324 |
-
temperature=
|
| 325 |
top_p=0.1,
|
| 326 |
top_k=1,
|
| 327 |
-
max_output_tokens=
|
| 328 |
thinking_config=types.ThinkingConfig(include_thoughts=True),
|
| 329 |
safety_settings=[
|
| 330 |
types.SafetySetting(category='HARM_CATEGORY_HARASSMENT', threshold='BLOCK_NONE'),
|
|
|
|
| 122 |
contents=data,
|
| 123 |
config=types.GenerateContentConfig(
|
| 124 |
system_instruction=textsi_1,
|
| 125 |
+
temperature=1,
|
| 126 |
top_p=0.1,
|
| 127 |
top_k=1,
|
| 128 |
+
max_output_tokens=24*1024,
|
| 129 |
safety_settings=[
|
| 130 |
types.SafetySetting(category='HARM_CATEGORY_HARASSMENT', threshold='BLOCK_NONE'),
|
| 131 |
types.SafetySetting(category='HARM_CATEGORY_HATE_SPEECH', threshold='BLOCK_NONE'),
|
|
|
|
| 321 |
contents=data,
|
| 322 |
config=types.GenerateContentConfig(
|
| 323 |
system_instruction=textsi_1,
|
| 324 |
+
temperature=1,
|
| 325 |
top_p=0.1,
|
| 326 |
top_k=1,
|
| 327 |
+
max_output_tokens=24*1024,
|
| 328 |
thinking_config=types.ThinkingConfig(include_thoughts=True),
|
| 329 |
safety_settings=[
|
| 330 |
types.SafetySetting(category='HARM_CATEGORY_HARASSMENT', threshold='BLOCK_NONE'),
|