Spaces:
Runtime error
Runtime error
installed pytorch
Browse files- Dockerfile +4 -2
- docker-container.png +0 -0
- docker-run.png +0 -0
- main.py +3 -1
- requirements.txt +16 -0
Dockerfile
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
-
FROM python:
|
2 |
COPY . /app
|
3 |
WORKDIR /app
|
4 |
|
5 |
-
|
|
|
|
|
|
1 |
+
FROM python:3.11
|
2 |
COPY . /app
|
3 |
WORKDIR /app
|
4 |
|
5 |
+
RUN pip install -r requirements.txt
|
6 |
+
|
7 |
+
CMD python3 main.py
|
docker-container.png
CHANGED
docker-run.png
CHANGED
main.py
CHANGED
@@ -1 +1,3 @@
|
|
1 |
-
|
|
|
|
|
|
1 |
+
import torch
|
2 |
+
x = torch.rand(5, 3)
|
3 |
+
print(x)
|
requirements.txt
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
certifi==2022.12.7
|
2 |
+
charset-normalizer==3.1.0
|
3 |
+
filelock==3.10.6
|
4 |
+
idna==3.4
|
5 |
+
Jinja2==3.1.2
|
6 |
+
MarkupSafe==2.1.2
|
7 |
+
mpmath==1.3.0
|
8 |
+
networkx==3.0
|
9 |
+
numpy==1.24.2
|
10 |
+
Pillow==9.4.0
|
11 |
+
requests==2.28.2
|
12 |
+
sympy==1.11.1
|
13 |
+
torch==2.0.0
|
14 |
+
torchvision==0.15.1
|
15 |
+
typing-extensions==4.5.0
|
16 |
+
urllib3==1.26.15
|