NihalGazi commited on
Commit
d4238fc
·
verified ·
1 Parent(s): c6c14ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
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()))