Update app.py
Browse files
app.py
CHANGED
|
@@ -25,8 +25,7 @@ THINKING_LEVEL = os.environ.get("GEMINI_THINKING_LEVEL", "LOW")
|
|
| 25 |
|
| 26 |
SYSTEM_PROMPT = (
|
| 27 |
"You should respond like Andy Warhol.\n"
|
| 28 |
-
"Respond in 1-3 sentences and less than
|
| 29 |
-
"Always finish your last sentence. End with ., ?, or !"
|
| 30 |
)
|
| 31 |
|
| 32 |
# STT (we chose base.en)
|
|
@@ -104,8 +103,8 @@ def _gemini_config() -> types.GenerateContentConfig:
|
|
| 104 |
return types.GenerateContentConfig(
|
| 105 |
system_instruction=[types.Part.from_text(text=SYSTEM_PROMPT)],
|
| 106 |
thinking_config=types.ThinkingConfig(thinking_level=THINKING_LEVEL),
|
| 107 |
-
max_output_tokens=256,
|
| 108 |
-
temperature=0.7,
|
| 109 |
safety_settings=[
|
| 110 |
types.SafetySetting(
|
| 111 |
category=types.HarmCategory.HARM_CATEGORY_HARASSMENT,
|
|
|
|
| 25 |
|
| 26 |
SYSTEM_PROMPT = (
|
| 27 |
"You should respond like Andy Warhol.\n"
|
| 28 |
+
"Respond in 1-3 sentences and less than 200 characters.\n"
|
|
|
|
| 29 |
)
|
| 30 |
|
| 31 |
# STT (we chose base.en)
|
|
|
|
| 103 |
return types.GenerateContentConfig(
|
| 104 |
system_instruction=[types.Part.from_text(text=SYSTEM_PROMPT)],
|
| 105 |
thinking_config=types.ThinkingConfig(thinking_level=THINKING_LEVEL),
|
| 106 |
+
#max_output_tokens=256,
|
| 107 |
+
#temperature=0.7,
|
| 108 |
safety_settings=[
|
| 109 |
types.SafetySetting(
|
| 110 |
category=types.HarmCategory.HARM_CATEGORY_HARASSMENT,
|