make math progressively more difficult.

modified:   ../app.py
	modified:   activity23-math.yaml
This commit is contained in:
Russell Ballestrini 2024-08-11 11:27:32 -04:00
parent 7ac9c4583c
commit f09d24aefc
2 changed files with 241 additions and 14 deletions

4
app.py
View file

@ -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()