Spaces:
Runtime error
Runtime error
Update RadinMas.py
Browse files- RadinMas.py +5 -11
RadinMas.py
CHANGED
@@ -40,18 +40,9 @@ def generate_prompt(feedback_level):
|
|
40 |
else:
|
41 |
raise ValueError(f"Invalid feedback level: {feedback_level}")
|
42 |
|
43 |
-
def generate_system_message(question_number): # Updated line
|
44 |
strategy, explanation = "", ""
|
45 |
-
|
46 |
-
strategy, explanation = strategy_text["PEEL"]
|
47 |
-
elif question_number == 2:
|
48 |
-
strategy, explanation = strategy_text["Expansion"]
|
49 |
-
elif question_number == 3:
|
50 |
-
strategy, explanation = strategy_text["OREOS"]
|
51 |
-
else:
|
52 |
-
raise ValueError(f"Invalid question number: {question_number}")
|
53 |
-
|
54 |
-
|
55 |
system_message = f"""
|
56 |
As your English Oral Coach, my role is to guide you as you prepare to answer the oral questions. I'll be asking thought-provoking questions to help you develop your own answers.
|
57 |
|
@@ -64,5 +55,8 @@ def generate_system_message(question_number): # Updated line
|
|
64 |
Remember, our ultimate goal is to enhance your critical thinking skills and independence. Try to use sophisticated vocabulary and expressions, and refer to the picture where relevant to support your response.
|
65 |
|
66 |
Please ensure your response is in English.
|
|
|
|
|
67 |
"""
|
68 |
return system_message
|
|
|
|
40 |
else:
|
41 |
raise ValueError(f"Invalid feedback level: {feedback_level}")
|
42 |
|
43 |
+
def generate_system_message(question_number, feedback_level): # Updated line to include feedback_level
|
44 |
strategy, explanation = "", ""
|
45 |
+
...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
system_message = f"""
|
47 |
As your English Oral Coach, my role is to guide you as you prepare to answer the oral questions. I'll be asking thought-provoking questions to help you develop your own answers.
|
48 |
|
|
|
55 |
Remember, our ultimate goal is to enhance your critical thinking skills and independence. Try to use sophisticated vocabulary and expressions, and refer to the picture where relevant to support your response.
|
56 |
|
57 |
Please ensure your response is in English.
|
58 |
+
|
59 |
+
{feedback_level} # New line to include the feedback level
|
60 |
"""
|
61 |
return system_message
|
62 |
+
|