@@ -28,7 +28,7 @@ def reg_or_not():
|
|||||||
if stable_diffusion_address.endswith('/sdapi/v1') or stable_diffusion_address.endswith('/sdapi/v1/'):
|
if stable_diffusion_address.endswith('/sdapi/v1') or stable_diffusion_address.endswith('/sdapi/v1/'):
|
||||||
logger.warn("'STABLE_DIFFUSION_URL' is expected to be something like: http://host[:port], "
|
logger.warn("'STABLE_DIFFUSION_URL' is expected to be something like: http://host[:port], "
|
||||||
"the form 'http://host[:port]/sdapi/v1' will be deprecated in the future.")
|
"the form 'http://host[:port]/sdapi/v1' will be deprecated in the future.")
|
||||||
if stable_diffusion_address('/sdapi/v1'):
|
if stable_diffusion_address.endswith('/sdapi/v1'):
|
||||||
stable_diffusion_address += '/txt2img'
|
stable_diffusion_address += '/txt2img'
|
||||||
else:
|
else:
|
||||||
stable_diffusion_address += 'txt2img'
|
stable_diffusion_address += 'txt2img'
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ load_dotenv()
|
|||||||
os.environ['OPENAI_API_KEY'] = os.getenv("JARVIS_OPENAI_API_KEY")
|
os.environ['OPENAI_API_KEY'] = os.getenv("JARVIS_OPENAI_API_KEY")
|
||||||
|
|
||||||
youtube_api_key = os.getenv("DEMO_YOUTUBE_API_KEY")
|
youtube_api_key = os.getenv("DEMO_YOUTUBE_API_KEY")
|
||||||
|
if youtube_api_key is not None and youtube_api_key != '':
|
||||||
youtube_client = build('youtube', 'v3', developerKey=youtube_api_key)
|
youtube_client = build('youtube', 'v3', developerKey=youtube_api_key)
|
||||||
youtube_video_max_result = 3
|
youtube_video_max_result = 3
|
||||||
youtube_username_set = set()
|
youtube_username_set = set()
|
||||||
|
|||||||
Reference in New Issue
Block a user