Spaces:
Running
Running
File size: 445 Bytes
1ec044c 8fc9334 b1ed202 1bfae7a fde3303 9b3cfc2 3c2a93b b1ed202 0704388 b1ed202 3c2a93b 1623472 8fc9334 5b59963 f6b388b cea9e80 c33c8af |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
import subprocess
import os
import time
#subprocess.call(["pip", "install", "flet==0.23.2","--ignore-installed"])
#subprocess.call(["pip", "install", "flet_fastapi==0.19.0"])
gh_token = os.getenv("gh_token")
url_with_token = f"https://{gh_token}@github.com/Eslam-Magdy-1297/Adel_Flet_Demo.git"
os.system(f"git clone {url_with_token}")
time.sleep(10)
with open("Adel_Flet_Demo/main.py", "r") as file:
code = file.read()
exec(code)
|