Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -13,21 +13,6 @@ os.system(f"git clone {url_with_token}")
|
|
13 |
|
14 |
time.sleep(10)
|
15 |
|
16 |
-
import subprocess
|
17 |
-
import os
|
18 |
-
import time
|
19 |
-
|
20 |
-
subprocess.call(["pip", "install", "flet==0.19.0"])
|
21 |
-
subprocess.call(["pip", "install", "flet_fastapi==0.19.0"])
|
22 |
-
|
23 |
-
gh_token = os.getenv("gh_token")
|
24 |
-
|
25 |
-
url_with_token = f"https://{gh_token}@github.com/Eslam-Magdy-1297/ESearch_FletV01.git"
|
26 |
-
|
27 |
-
os.system(f"git clone {url_with_token}")
|
28 |
-
|
29 |
-
time.sleep(10)
|
30 |
-
|
31 |
with open("ESearch_FletV01/app.py", "r") as file:
|
32 |
code = file.read()
|
33 |
exec(code)
|
|
|
13 |
|
14 |
time.sleep(10)
|
15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
with open("ESearch_FletV01/app.py", "r") as file:
|
17 |
code = file.read()
|
18 |
exec(code)
|