Spaces:
Sleeping
Sleeping
Update RadinMas.py
Browse files- RadinMas.py +10 -0
RadinMas.py
CHANGED
|
@@ -30,6 +30,16 @@ questions = [
|
|
| 30 |
f"3. What do you think are some benefits of leisure activities? "
|
| 31 |
]
|
| 32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
def generate_system_message(question_number): # Updated line
|
| 34 |
strategy, explanation = "", ""
|
| 35 |
if question_number == 1:
|
|
|
|
| 30 |
f"3. What do you think are some benefits of leisure activities? "
|
| 31 |
]
|
| 32 |
|
| 33 |
+
def generate_prompt(feedback_level):
|
| 34 |
+
if feedback_level == "Brief Feedback":
|
| 35 |
+
return "Provide a brief feedback of around 25 words."
|
| 36 |
+
elif feedback_level == "Detailed Feedback":
|
| 37 |
+
return "Provide a detailed feedback of around 50 words."
|
| 38 |
+
elif feedback_level == "Comprehensive Feedback":
|
| 39 |
+
return "Provide a comprehensive feedback."
|
| 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 |
if question_number == 1:
|