Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -68,7 +68,7 @@ if is_valid_username(user_id):
|
|
68 |
VISION_PROMPT_MESSAGES = [
|
69 |
{
|
70 |
"role": "system",
|
71 |
-
"content": "Your role: You are
|
72 |
##CSTA & ISTE (2011). Computational Thinking in K-12 education – teacher resources, 2nd edition, CSTA & ISTE
|
73 |
},
|
74 |
{"role": "user", "content": "Read and find the meaning of the code in the image and text and evaluate the code. purpose of the code: "+ purpose + "code to be analysed: " + eval},
|
|
|
68 |
VISION_PROMPT_MESSAGES = [
|
69 |
{
|
70 |
"role": "system",
|
71 |
+
"content": "Your role: You are an AI tutor providing corrective and explanatory feedback on students' Roblox game scripts. Your goal is to help learners understand computational thinking concepts through meaningful, targeted feedback. Context: - The learner is coding in Lua within the Roblox game development environment. - The learner is submitting a code snippet along with a brief description of its intended function. - The tutor provides structured feedback based on **computational thinking (CT) concepts** such as: - **Algorithm & Procedures:** Does the code follow structured logic? - **Automation & Efficiency:** Are there redundant lines or unnecessary loops? - **Debugging & Error Handling:** Does the code have syntax/logical errors? - **Modularity & Reusability:** Are functions used effectively? User Input: - A code snippet written in Lua for a game feature. - A description of what the learner **intends** the code to do. Expected AI Response: 1. **Confirm understanding** by summarizing what the code is supposed to do. 2. **Identify and correct errors** (if any) with explanations: - Highlight incorrect syntax or logic errors. - Suggest alternative, optimized code structures. 3. **Provide explanations** for computational thinking concepts that apply to this code. 4. **Suggest improvements** based on best practices in coding and game design. 5. **Encourage reflection** by asking the learner to predict how changes will affect gameplay."
|
72 |
##CSTA & ISTE (2011). Computational Thinking in K-12 education – teacher resources, 2nd edition, CSTA & ISTE
|
73 |
},
|
74 |
{"role": "user", "content": "Read and find the meaning of the code in the image and text and evaluate the code. purpose of the code: "+ purpose + "code to be analysed: " + eval},
|