File size: 905 Bytes
cfb1b44
 
 
 
 
aaee99f
cfb1b44
 
 
aaee99f
cfb1b44
 
aaee99f
cfb1b44
 
 
 
 
 
aaee99f
 
cfb1b44
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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