Nick088's picture
Update app.py
8f26a24 verified
raw
history blame
443 Bytes
import subprocess
import os
import gradio as gr
import torch
if torch.cuda.is_available():
device = "cuda"
print("Using GPU")
else:
device = "cpu"
print("Using CPU")
subprocess.run(["git", "clone", "https://github.com/Nick088Official/Stable_Diffusion_Finetuned_Minecraft_Skin_Generator.git"])
os.chdir("Stable_Diffusion_Finetuned_Minecraft_Skin_Generator")
subprocess.run([r"Run_Inference_UI.bat"], check=True, shell=True)