make math progressively more difficult.
modified: ../app.py modified: activity23-math.yaml
This commit is contained in:
parent
7ac9c4583c
commit
f09d24aefc
2 changed files with 241 additions and 14 deletions
4
app.py
4
app.py
|
|
@ -2642,7 +2642,9 @@ def provide_feedback(
|
|||
|
||||
def translate_text(text, target_language):
|
||||
# Guard clause for default language
|
||||
if " english" in target_language.lower():
|
||||
target_language = target_language.lower().split()
|
||||
|
||||
if "english" in target_language:
|
||||
return text
|
||||
|
||||
openai_client, model_name = get_openai_client_and_model()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue