Coder Social home page Coder Social logo

Comments (5)

Zyin055 avatar Zyin055 commented on July 3, 2024 1

Change the highlighted line in your screenshot to this:

enabled = gr.Checkbox(value=False, label="Enable Dynamic Thresholding (CFG Scale Fix)", elem_classes=["dynthres-enabled"], elem_id="dynamic_thresholding_enable")

use dynamic_thresholding_enable to target it.

from config-presets.

ArmyOfPun1776 avatar ArmyOfPun1776 commented on July 3, 2024

Screenshot 2024-02-20 074048

This is the only part of the code that I can find that specifically references a checkbox element.

from config-presets.

Zyin055 avatar Zyin055 commented on July 3, 2024

It looks like that exension author has not included an ID for that checkbox. elem_id is the attribute you are looking for in the code, elem_classes is just for a CSS class. You can either ask the extension author to include an elem_id attribute for that checkbox, or you can edit that code and add elem_id="whatever_id_name_here" so you can target it.

from config-presets.

ArmyOfPun1776 avatar ArmyOfPun1776 commented on July 3, 2024

It looks like that exension author has not included an ID for that checkbox. elem_id is the attribute you are looking for in the code, elem_classes is just for a CSS class. You can either ask the extension author to include an elem_id attribute for that checkbox, or you can edit that code and add elem_id="whatever_id_name_here" so you can target it.

Thanks. That's what I figured. I honestly wouldn't even know where to begin as far as adding the "target" myself. I'll ask the creator if they'd be willing to do that. Maybe try my hand at editing if I'm feeling brave.

Thanks again for the fast reply.

from config-presets.

ArmyOfPun1776 avatar ArmyOfPun1776 commented on July 3, 2024

You are a God amongst mortals!

Thank you. I was just looking up how to do this and you swooped in for the win.

from config-presets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.