Spaces:
Running
Running
Update app.py
Browse files
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(
|