Spaces:
Running
Running
Update pages/3_WithExercises.py
Browse files- pages/3_WithExercises.py +2 -1
pages/3_WithExercises.py
CHANGED
@@ -22,7 +22,7 @@ def execute_code(code):
|
|
22 |
|
23 |
return output, local_vars
|
24 |
|
25 |
-
|
26 |
exercises = {
|
27 |
"Exercise 1: Create and Manipulate Tensors": {
|
28 |
"description": "Tensors are the core data structure in PyTorch, similar to arrays in NumPy but with additional capabilities for GPU acceleration. This exercise introduces how to create tensors from various data sources such as lists and NumPy arrays. It also covers basic tensor operations like addition, subtraction, and element-wise multiplication, which are fundamental for manipulating data in PyTorch.",
|
@@ -378,3 +378,4 @@ if st.button("Run Code"):
|
|
378 |
st.subheader('Variables')
|
379 |
for key, value in variables.items():
|
380 |
st.text(f"{key}: {value}")
|
|
|
|
22 |
|
23 |
return output, local_vars
|
24 |
|
25 |
+
|
26 |
exercises = {
|
27 |
"Exercise 1: Create and Manipulate Tensors": {
|
28 |
"description": "Tensors are the core data structure in PyTorch, similar to arrays in NumPy but with additional capabilities for GPU acceleration. This exercise introduces how to create tensors from various data sources such as lists and NumPy arrays. It also covers basic tensor operations like addition, subtraction, and element-wise multiplication, which are fundamental for manipulating data in PyTorch.",
|
|
|
378 |
st.subheader('Variables')
|
379 |
for key, value in variables.items():
|
380 |
st.text(f"{key}: {value}")
|
381 |
+
|