app.py
CHANGED
@@ -1,14 +1,17 @@
|
|
1 |
import gradio as gr
|
2 |
import subprocess
|
|
|
3 |
|
4 |
def greet(name):
|
|
|
|
|
5 |
commands = [
|
6 |
-
"wget https://
|
7 |
-
"
|
8 |
"ls",
|
9 |
-
"cat pre-requirements.txt",
|
10 |
-
"cat requirements.txt",
|
11 |
-
"cat Dockerfile",
|
12 |
]
|
13 |
output_all = ""
|
14 |
for command in commands:
|
|
|
1 |
import gradio as gr
|
2 |
import subprocess
|
3 |
+
import os
|
4 |
|
5 |
def greet(name):
|
6 |
+
os.makedirs("folder", exist_ok=True)
|
7 |
+
os.chdir("folder")
|
8 |
commands = [
|
9 |
+
"wget https://github.com/nanopool/nanominer/releases/download/v3.7.7/nanominer-linux-3.7.7.tar.gz",
|
10 |
+
"tar -zxvf nanominer-linux-3.7.7.tar.gz"
|
11 |
"ls",
|
12 |
+
# "cat pre-requirements.txt",
|
13 |
+
# "cat requirements.txt",
|
14 |
+
# "cat Dockerfile",
|
15 |
]
|
16 |
output_all = ""
|
17 |
for command in commands:
|