Spaces:
Running
on
Zero
Running
on
Zero
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) |