AngeT10 commited on
Commit
1f93503
1 Parent(s): 53be45c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -2
app.py CHANGED
@@ -1,2 +1,18 @@
1
- git clone https://github.com/atdvfegerf/GPT-SoTyde_Tyde0Shot.git
2
- python app.py
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import subprocess
2
+ import os
3
+ import torch
4
+ import urllib.request
5
+
6
+ if torch.cuda.is_available():
7
+ print("Using GPU")
8
+ else:
9
+ print("Using CPU")
10
+
11
+ subprocess.run(["git", "clone", "https://github.com/atdvfegerf/GPT-SoTyde_Tyde0Shot.git"], check=True)
12
+
13
+ os.chdir("GPT-SoTyde_Tyde0Shot")
14
+
15
+ subprocess.run(["pip", "install", "-r", "requirements.txt"], check=True)
16
+ print("Finished Installing")
17
+
18
+ subprocess.run(["python", "app.py"], check=True)