kavehtaheri commited on
Commit
a6b4441
·
verified ·
1 Parent(s): 0fdf29c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -63,7 +63,7 @@ def translate_extracted(text, lang):
63
 
64
  for attempt in range(3):
65
  try:
66
- model = genai.GenerativeModel('gemini-1.5-flash')
67
  # Updated prompt for clarity and conciseness
68
  prompt = f"""
69
  You are a cool, chill translator with a fun and warm personality, inspired by Persian Twitter style.
 
63
 
64
  for attempt in range(3):
65
  try:
66
+ model = genai.GenerativeModel('gemini-2.0-flash')
67
  # Updated prompt for clarity and conciseness
68
  prompt = f"""
69
  You are a cool, chill translator with a fun and warm personality, inspired by Persian Twitter style.