mix1009 / sdwebuiapi

Python API client for AUTOMATIC1111/stable-diffusion-webui
MIT License
1.35k stars 181 forks source link

webuiapi.py There is an error #157

Closed zdoek001 closed 5 months ago

zdoek001 commented 5 months ago
    if control_mode == 0:
        self.control_mode = 'Balanced',
    elif control_mode == 1:
        self.control_mode = 'My prompt is more important'
    elif control_mode == 2:
        self.control_mode = 'ControlNet is more important'
    else:
        self.control_mode = control_mode

        Adding an extra ',' in 'Balanced' will result in recognition errors
mix1009 commented 5 months ago

Thank you. I'll fix the bug.