Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ def translation_to_French(api_key, text):
|
|
| 16 |
try:
|
| 17 |
|
| 18 |
genai.configure(api_key=api_key)
|
| 19 |
-
model = genai.GenerativeModel("gemini-2.5-flash)
|
| 20 |
|
| 21 |
# Translation prompt
|
| 22 |
translation_prompt = f"Translate the following English text to French:\n\n{text}"
|
|
|
|
| 16 |
try:
|
| 17 |
|
| 18 |
genai.configure(api_key=api_key)
|
| 19 |
+
model = genai.GenerativeModel("gemini-2.5-flash")
|
| 20 |
|
| 21 |
# Translation prompt
|
| 22 |
translation_prompt = f"Translate the following English text to French:\n\n{text}"
|