Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -14,13 +14,13 @@ import subprocess
|
|
14 |
|
15 |
gh_token = os.getenv("gh_token")
|
16 |
|
17 |
-
url_with_token = f"https://{gh_token}@github.com/Eslam-Magdy-1297/
|
18 |
|
19 |
os.system(f"git clone {url_with_token}")
|
20 |
|
21 |
time.sleep(10)
|
22 |
|
23 |
-
source_dir = "
|
24 |
destination_dir = "."
|
25 |
|
26 |
import os
|
@@ -39,6 +39,6 @@ for item in os.listdir(source_dir):
|
|
39 |
|
40 |
os.rmdir(source_dir)
|
41 |
|
42 |
-
with open("
|
43 |
code = file.read()
|
44 |
exec(code)
|
|
|
14 |
|
15 |
gh_token = os.getenv("gh_token")
|
16 |
|
17 |
+
url_with_token = f"https://{gh_token}@github.com/Eslam-Magdy-1297/ZillionParts-Pdf2Doc.git"
|
18 |
|
19 |
os.system(f"git clone {url_with_token}")
|
20 |
|
21 |
time.sleep(10)
|
22 |
|
23 |
+
source_dir = "ZillionParts-Pdf2Doc"
|
24 |
destination_dir = "."
|
25 |
|
26 |
import os
|
|
|
39 |
|
40 |
os.rmdir(source_dir)
|
41 |
|
42 |
+
with open("app.py", "r") as file:
|
43 |
code = file.read()
|
44 |
exec(code)
|