Anthonyg5005 commited on
Commit
9623a45
·
verified ·
1 Parent(s): 9a1a19e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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-1206",
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