rbcurzon_laptop commited on
Commit
9b436d2
·
1 Parent(s): 0cf3078

Revert "refactor: adjust temperature parameter in translation model configuration"

Browse files

This reverts commit 0cf307816b2e0be797b18b4bd779ff20e1088997.

Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -81,7 +81,6 @@ def translate(text, srcLang, tgtLang):
81
  config=types.GenerateContentConfig(
82
  system_instruction=f"You are an expert translator. Your task is to translate from {srcLang} to {tgtLang}. You must provide ONLY the translated text. Do not include any explanations, additional commentary, or conversational language. Just the translated text.",
83
  thinking_config=types.ThinkingConfig(thinking_budget=0), # Disables thinking
84
- temperature=0.6
85
  )
86
  )
87
  return response.text
 
81
  config=types.GenerateContentConfig(
82
  system_instruction=f"You are an expert translator. Your task is to translate from {srcLang} to {tgtLang}. You must provide ONLY the translated text. Do not include any explanations, additional commentary, or conversational language. Just the translated text.",
83
  thinking_config=types.ThinkingConfig(thinking_budget=0), # Disables thinking
 
84
  )
85
  )
86
  return response.text