curt-park commited on
Commit
913348c
1 Parent(s): b6747d6

Add app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -0
app.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+
3
+
4
+ github_user = os.environ.get("GITHUB_USER")
5
+ github_token = os.environ.get("GITHUB_TOKEN")
6
+
7
+ repo_name = "annotation-ai/mlwiz-technical-demo"
8
+
9
+ os.system(f"export GITHUB_USER={github_user}")
10
+ os.system(f"export GITHUB_TOKEN={github_token}")
11
+ os.system(f"git clone https://{github_user}:{github_token}@github.com/{repo_name}")
12
+
13
+ cwd0 = os.getcwd()
14
+ cwd1 = os.path.join(cwd0, "mlwiz-technical-demo")
15
+ os.chdir(cwd1)
16
+ os.system("pip install -r requirements.txt")
17
+ os.system("python app.py --task=everything")