Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -254,7 +254,7 @@ def doSlang(inputText, translatedText, outLangLong, inLangLong): #use gemini 2.0
|
|
254 |
doExplain = slangDetect.replace("\n", "").replace(" ", "")
|
255 |
if doExplain == "Detected": #ask gemini to classify the text as slang or not
|
256 |
ExplainedSlang = genai.GenerativeModel(
|
257 |
-
model_name="gemini-exp
|
258 |
generation_config=generation_config,
|
259 |
system_instruction=slangExplanation,
|
260 |
).start_chat().send_message(f"Original text:{inputText}\n\nTranslated text:{translatedText}").text
|
|
|
254 |
doExplain = slangDetect.replace("\n", "").replace(" ", "")
|
255 |
if doExplain == "Detected": #ask gemini to classify the text as slang or not
|
256 |
ExplainedSlang = genai.GenerativeModel(
|
257 |
+
model_name="gemini-2.0-flash-exp",
|
258 |
generation_config=generation_config,
|
259 |
system_instruction=slangExplanation,
|
260 |
).start_chat().send_message(f"Original text:{inputText}\n\nTranslated text:{translatedText}").text
|