Based off of instructions from Run Stable Diffusion on your M1 Mac’s GPU
- Make sure that you have Command Line Tools for Xcode installed:
sudo xcode-select --install
- Install homebrew:
from bs4 import BeautifulSoup | |
import json | |
def strip_empty_lines(code): | |
return '\n'.join([ | |
line for line in code.split('\n') | |
if line.strip() != '']) | |
Based off of instructions from Run Stable Diffusion on your M1 Mac’s GPU
sudo xcode-select --install
from pprint import pprint | |
from oauth2client.file import Storage | |
from oauth2client.client import OAuth2WebServerFlow | |
from oauth2client.tools import run | |
import json | |
from urllib import urlencode | |
import httplib2 | |
DEVELOPER_KEY=""; |