Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -79,7 +79,11 @@ def generate_text(system_instruction, prompt):
|
|
79 |
HarmCategory.HARM_CATEGORY_HARASSMENT: HarmBlockThreshold.BLOCK_NONE,
|
80 |
HarmCategory.HARM_CATEGORY_SEXUALLY_EXPLICIT: HarmBlockThreshold.BLOCK_NONE,
|
81 |
HarmCategory.HARM_CATEGORY_DANGEROUS_CONTENT: HarmBlockThreshold.BLOCK_NONE
|
82 |
-
}
|
|
|
|
|
|
|
|
|
83 |
)
|
84 |
|
85 |
return introduce_typos(filter_string(response.text.lower()))
|
|
|
79 |
HarmCategory.HARM_CATEGORY_HARASSMENT: HarmBlockThreshold.BLOCK_NONE,
|
80 |
HarmCategory.HARM_CATEGORY_SEXUALLY_EXPLICIT: HarmBlockThreshold.BLOCK_NONE,
|
81 |
HarmCategory.HARM_CATEGORY_DANGEROUS_CONTENT: HarmBlockThreshold.BLOCK_NONE
|
82 |
+
},
|
83 |
+
|
84 |
+
generation_config=genai.types.GenerationConfig(
|
85 |
+
temperature=0.1,
|
86 |
+
)
|
87 |
)
|
88 |
|
89 |
return introduce_typos(filter_string(response.text.lower()))
|