rbcurzon commited on
Commit
568f1de
·
verified ·
1 Parent(s): 24fd25f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ from google.genai import types
29
  client = genai.Client(api_key=os.environ.get("GENAI_API_KEY")) # Do not share api key
30
 
31
  def translate(text, srcLang, tgtLang):
32
- sys_instruct = "You are a professional translator. Generate a translation of the text and return only the result.."
33
  response = client.models.generate_content(
34
  model="gemini-2.0-flash",
35
  config=types.GenerateContentConfig(
 
29
  client = genai.Client(api_key=os.environ.get("GENAI_API_KEY")) # Do not share api key
30
 
31
  def translate(text, srcLang, tgtLang):
32
+ sys_instruct = "You are a professional translator. Generate a translation of the text and return only the result. Return only the translated text."
33
  response = client.models.generate_content(
34
  model="gemini-2.0-flash",
35
  config=types.GenerateContentConfig(