From c2e0d46616ed765ab400dcffe6ccb52460475f52 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Tue, 25 Jul 2023 15:49:04 -0700 Subject: [PATCH] Add credits --- modules/ui.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/ui.py b/modules/ui.py index b2a60f7..3e466ff 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -164,7 +164,10 @@ def apply_interface_values(state, use_persistent=False): class ToolButton(gr.Button, gr.components.IOComponent): - """Small button with single emoji as text, fits inside gradio forms""" + """ + Small button with single emoji as text, fits inside gradio forms + Copied from https://github.com/AUTOMATIC1111/stable-diffusion-webui + """ def __init__(self, **kwargs): super().__init__(**kwargs) @@ -174,6 +177,9 @@ class ToolButton(gr.Button, gr.components.IOComponent): def create_refresh_button(refresh_component, refresh_method, refreshed_args, elem_class): + """ + Copied from https://github.com/AUTOMATIC1111/stable-diffusion-webui + """ def refresh(): refresh_method() args = refreshed_args() if callable(refreshed_args) else refreshed_args