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