Spaces:
Running
on
Zero
Running
on
Zero
roychao19477
commited on
Commit
·
3a48a18
1
Parent(s):
18c6bb7
Update module
Browse files
app.py
CHANGED
@@ -17,17 +17,16 @@ def clone_github():
|
|
17 |
subprocess.run([
|
18 |
"git", "clone",
|
19 |
f"https://RoyChao19477:{os.environ['GITHUB_TOKEN']}@github.com/RoyChao19477/for_HF_AVSEMamba.git",
|
20 |
-
"tmp_repo"
|
21 |
])
|
22 |
# move all files except README.md
|
23 |
-
for item in glob.glob("
|
24 |
if os.path.basename(item) != "README.md":
|
25 |
if os.path.isdir(item):
|
26 |
shutil.move(item, ".")
|
27 |
else:
|
28 |
shutil.move(item, os.path.join(".", os.path.basename(item)))
|
29 |
|
30 |
-
shutil.rmtree("tmp_repo")
|
31 |
subprocess.run(["ls"], check=True)
|
32 |
fsefsef
|
33 |
|
|
|
17 |
subprocess.run([
|
18 |
"git", "clone",
|
19 |
f"https://RoyChao19477:{os.environ['GITHUB_TOKEN']}@github.com/RoyChao19477/for_HF_AVSEMamba.git",
|
|
|
20 |
])
|
21 |
# move all files except README.md
|
22 |
+
for item in glob.glob("for_HF_AVSEMamba/*"):
|
23 |
if os.path.basename(item) != "README.md":
|
24 |
if os.path.isdir(item):
|
25 |
shutil.move(item, ".")
|
26 |
else:
|
27 |
shutil.move(item, os.path.join(".", os.path.basename(item)))
|
28 |
|
29 |
+
#shutil.rmtree("tmp_repo")
|
30 |
subprocess.run(["ls"], check=True)
|
31 |
fsefsef
|
32 |
|