Spaces:
Sleeping
Sleeping
Baptiste Gaultier commited on
Commit ·
87e23e5
1
Parent(s): 82e9fef
instructions fixed
Browse files
app.py
CHANGED
|
@@ -98,16 +98,13 @@ if __name__ == "__main__":
|
|
| 98 |
with gr.Row():
|
| 99 |
instructions = gr.Markdown("""
|
| 100 |
## Instructions
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
* If you are not satisfied with your grade, you can improve your code and click the 'Grade' button again.
|
| 109 |
-
* You can click the 'Grade' button as many times as you want.
|
| 110 |
-
""")
|
| 111 |
code = gr.Code(label="MicroPython code", language="python", value='import machine\n\n# Your code here', lines=24)
|
| 112 |
with gr.Row():
|
| 113 |
feedback_output = gr.Textbox(label="Feedback", value="Click on the 'Grade' button to get feedback", interactive=False, scale=4)
|
|
|
|
| 98 |
with gr.Row():
|
| 99 |
instructions = gr.Markdown("""
|
| 100 |
## Instructions
|
| 101 |
+
1. Based on the examples you've seen so far, write a MicroPython code that follows the instructions above.
|
| 102 |
+
2. You can use the [Vittascience simulator](https://fr.vittascience.com/esp32/?mode=code&console=bottom&toolbox=scratch&simu=1&board=basic-esp32) to test your code.
|
| 103 |
+
2. Click the "Grade" button to get a grade and feedback.
|
| 104 |
+
3. Make sure your code is well-structured and efficient.
|
| 105 |
+
4. When you're happy with your code, please upload your solution below to get graded.
|
| 106 |
+
6. Good luck!
|
| 107 |
+
""", container=True)
|
|
|
|
|
|
|
|
|
|
| 108 |
code = gr.Code(label="MicroPython code", language="python", value='import machine\n\n# Your code here', lines=24)
|
| 109 |
with gr.Row():
|
| 110 |
feedback_output = gr.Textbox(label="Feedback", value="Click on the 'Grade' button to get feedback", interactive=False, scale=4)
|