Skip to content

Instantly share code, notes, and snippets.

@h-a-te
h-a-te / prompt_processor.py
Last active October 15, 2022 16:26
This will replace __token__ recursively with a value from wildcard/token.txt. spaces working, added missing error message
import math
import os
import sys
import traceback
import random
import re
from random import choices
import modules.scripts as scripts