Spaces:
Runtime error
Runtime error
import os | |
from dotenv import load_dotenv | |
from subprocess import Popen | |
commandline_args = os.environ.get('COMMANDLINE_ARGS', "--skip-torch-cuda-test") | |
load_dotenv() | |
command = ["mercury", "run", f"0.0.0.0:{os.environ.get('PORT', 7860)}"] | |
worker = Popen(command) | |
worker.wait() | |
# #@title Run with Gradio | |
# #@markdown  | |
# import subprocess | |
# # cek = subprocess.getoutput('nvidia-smi') | |
# # if not 'T4' in cek: | |
# # print("[1;32m-----Your colab session is over. Use other google account or wait 12-24 hours-----") | |
# # print("-----Sesi colab elu udah habis bro. Saran gw tunggu 12-24 jam atau bikin/pake akun google lain-----") | |
# # raise KeyboardInterrupt | |
# %cd /content/stable-diffusion-webui/ | |
# !python launch.py --share --xformers --enable-insecure-extension-access --gradio-queue --no-half-vae |