Heheh / app.py
AngeT10's picture
Update app.py
1f93503 verified
raw
history blame
434 Bytes
import subprocess
import os
import torch
import urllib.request
if torch.cuda.is_available():
print("Using GPU")
else:
print("Using CPU")
subprocess.run(["git", "clone", "https://github.com/atdvfegerf/GPT-SoTyde_Tyde0Shot.git"], check=True)
os.chdir("GPT-SoTyde_Tyde0Shot")
subprocess.run(["pip", "install", "-r", "requirements.txt"], check=True)
print("Finished Installing")
subprocess.run(["python", "app.py"], check=True)