Commit
·
ad846e9
1
Parent(s):
cd82004
Upload sdxllorapps.py
Browse files- Scripts/sdxllorapps.py +15 -0
Scripts/sdxllorapps.py
CHANGED
@@ -95,6 +95,21 @@ def depsinst(url, dst):
|
|
95 |
f.write(buffer)
|
96 |
pbar.update(len(buffer))
|
97 |
f.close()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
|
99 |
|
100 |
def dwn2(url, dst, msg, auth):
|
|
|
95 |
f.write(buffer)
|
96 |
pbar.update(len(buffer))
|
97 |
f.close()
|
98 |
+
|
99 |
+
|
100 |
+
def ntbk():
|
101 |
+
|
102 |
+
os.chdir('/notebooks')
|
103 |
+
if not os.path.exists('Latest_Notebooks'):
|
104 |
+
call('mkdir Latest_Notebooks', shell=True)
|
105 |
+
else:
|
106 |
+
call('rm -r Latest_Notebooks', shell=True)
|
107 |
+
call('mkdir Latest_Notebooks', shell=True)
|
108 |
+
os.chdir('/notebooks/Latest_Notebooks')
|
109 |
+
call('wget -q -i https://huggingface.co/datasets/TheLastBen/PPS/raw/main/Notebooks.txt', shell=True)
|
110 |
+
call('rm Notebooks.txt', shell=True)
|
111 |
+
os.chdir('/notebooks')
|
112 |
+
|
113 |
|
114 |
|
115 |
def dwn2(url, dst, msg, auth):
|