RudiCahyan's picture
Upload 202 files
cfb1b44
raw
history blame
905 Bytes
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 ![](https://raw.githubusercontent.com/etherealxx/etherportal-webui-colab/master/images/launchwebui2.jpg)
# import subprocess
# # cek = subprocess.getoutput('nvidia-smi')
# # if not 'T4' in cek:
# # print("-----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