Update app.py
Browse files
app.py
CHANGED
@@ -1,2 +1,18 @@
|
|
1 |
-
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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)
|