Spaces:
Running
Running
Commit
•
2bc5de6
1
Parent(s):
f35a2d3
install docker using os
Browse files- app.py +4 -0
- packages.txt +0 -5
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import random
|
2 |
import gradio as gr
|
3 |
from optimum_benchmark.task_utils import (
|
@@ -15,6 +16,9 @@ from config_store import (
|
|
15 |
get_pytorch_config,
|
16 |
)
|
17 |
|
|
|
|
|
|
|
18 |
BACKENDS = ["pytorch", "onnxruntime", "openvino", "neural-compressor", "text-generation-inference"]
|
19 |
BENCHMARKS = ["inference", "training"]
|
20 |
DEVICES = ["cpu", "cuda"]
|
|
|
1 |
+
import os
|
2 |
import random
|
3 |
import gradio as gr
|
4 |
from optimum_benchmark.task_utils import (
|
|
|
16 |
get_pytorch_config,
|
17 |
)
|
18 |
|
19 |
+
os.system("curl -fsSL https://get.docker.com -o get-docker.sh")
|
20 |
+
os.system("sh get-docker.sh")
|
21 |
+
|
22 |
BACKENDS = ["pytorch", "onnxruntime", "openvino", "neural-compressor", "text-generation-inference"]
|
23 |
BENCHMARKS = ["inference", "training"]
|
24 |
DEVICES = ["cpu", "cuda"]
|
packages.txt
DELETED
@@ -1,5 +0,0 @@
|
|
1 |
-
docker-ce
|
2 |
-
docker-ce-cli
|
3 |
-
containerd.io
|
4 |
-
docker-buildx-plugin
|
5 |
-
docker-compose-plugin
|
|
|
|
|
|
|
|
|
|
|
|