Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Some console error #20

Open
LLKoder opened this issue Sep 15, 2023 · 4 comments
Open

[Bug]: Some console error #20

LLKoder opened this issue Sep 15, 2023 · 4 comments

Comments

@LLKoder
Copy link

LLKoder commented Sep 15, 2023

On start up I see some console error:

...\stable-diffusion-webui\extensions\stable-diffusion-webui-promptgen\scripts\promptgen.py:160: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  prompt = gr.Textbox(label="Prompt", elem_id="promptgen_prompt", show_label=False, lines=2, placeholder="Beginning of the prompt (press Ctrl+Enter or Alt+Enter to generate)").style(container=False)
...\stable-diffusion-webui\modules\gradio_extensons.py:25: GradioUnusedKwargWarning: You have unused kwarg parameters in Button, please remove them: {'full_width': True}
  res = original_IOComponent_init(self, *args, **kwargs)

version: v1.6.0
python: 3.10.11
torch: 2.0.1+cu118
xformers: 0.0.20
gradio: 3.41.2
checkpoint: [171c237b86]

@Wovik253
Copy link

Same here

@snakemr
Copy link

snakemr commented Feb 19, 2024

Python 3.10.6
Version: v1.7.0
still here

@D0n-A
Copy link

D0n-A commented Mar 18, 2024

I am not a professional developer, but a possible solution would be:
just replace

prompt = gr.Textbox(label="Prompt", elem_id="promptgen_prompt", show_label=False, lines=2, placeholder="Beginning of the prompt (press Ctrl+Enter or Alt+Enter to generate)").style(container=False)

to

prompt = gr.Textbox(label="Prompt", elem_id="promptgen_prompt", show_label=False, lines=2, placeholder="Beginning of the prompt (press Ctrl+Enter or Alt+Enter to generate)", container=False)

in file .../stable-diffusion-webui-promptgen/scripts/promptgen.py (160)
and don't forget to delete the folder "__pycache__" in .../stable-diffusion-webui-promptgen/scripts

At least the first warning should go away.

@DavideAlidosi
Copy link

I am not a professional developer, but a possible solution would be: just replace

prompt = gr.Textbox(label="Prompt", elem_id="promptgen_prompt", show_label=False, lines=2, placeholder="Beginning of the prompt (press Ctrl+Enter or Alt+Enter to generate)").style(container=False)

to

prompt = gr.Textbox(label="Prompt", elem_id="promptgen_prompt", show_label=False, lines=2, placeholder="Beginning of the prompt (press Ctrl+Enter or Alt+Enter to generate)", container=False)

in file .../stable-diffusion-webui-promptgen/scripts/promptgen.py (160) and don't forget to delete the folder "pycache" in .../stable-diffusion-webui-promptgen/scripts

At least the first warning should go away.

Thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants