Repository: stable-diffusion-webui
Issue: [Bug]: TypeError "type list doesn't define __round__ method"
Labels: bug-report

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

TypeError: type list doesn't define __round__ method

I don't think it's the prompt, but the Last prompt worked (same settings).

VisitError: Error trying to process rule "start": generator raised StopIteration
Time taken: 0.50sTorch active/reserved: 2627/2646 MiB, Sys VRAM: 4703/12288 MiB (38.27%)

Traceback (most recent call last):
  File "D:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 337, in run_predict
    output = await app.get_blocks().process_api(
  File "D:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1013, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "D:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 911, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "D:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 540, in preprocess
    return self._round_to_precision(x, self.precision)
  File "D:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 504, in _round_to_precision
    return int(round(num, precision))
TypeError: type list doesn't define __round__ method

### Steps to reproduce the problem

1. Run the given prompt.      (([Jolene Blalock|Katherine Helmond|Cate Blanchett|Hermione Granger|Demi Moore|Evanna Lynch|Jane Fonda] with Vulcan Ears )), ((short) [straight|bangs|fringe|buzz cut] [black|red|blonde|] hair), character portrait, (wearing (historical) chainmail), ((with a (solid black) background)), (((photorealistic))), 4K, hyperrealism, (a color photo)
NEGATIVE PROMPT
(((a painting, digital portrait, digital art))), (((widow's peak))), (((beard, mustache))), (((earings))), ((horns)), ((clouds)), (((((Emaciated))))), (((style miniature))), ((sword)), ((stick)), wand, ((watermark)), ((text)), ((emblem)), ((logo)), ((modern clothes), (modern fabric)), ((makeup)), out of frame, ((sci fi fantasy)), ((a hologram)), ((art deco))

Steps: 21, Sampler: Euler a, CFG scale: 4, Seed: Whatever, Face restoration: CodeFormer, Size: 512x512, Model hash: fe2cf8a20b, Model: Lexica_model

2. Other settings were also tried, seems to be the prompt.  Well, the prompt analysis anyway, as it claims "type list doesn't define __round__ method". Sounds like a module declaration error, at least to my old hobby programmer eyes.
3. Unloaded and restarted to verify it wasn't simply corrupted memory.
4. Previous working prompt
(([Julie Andrews|Jolene Blalock|Kirstie Alley|Katherine Helmond|Greta Garbo|Cate Blanchett|Jennifer Lien|Hermione Granger|Demi Moore|Evanna Lynch|Jane Fonda|Betty White] with Vulcan Ears )), ((short) [straight|curly|braided|bangs|fringe|buzz cut] [black|red|orange] hair), ((with nothing in her hair)), character portrait, wearing ((historical chainmail)), ((full body)), (((with a (solid black) background))), (((photorealistic))), (((photorealism))), 4K, hyperrealism, (((a color photo)))
Negative prompt: (((a painting, digital portrait, digital art))), (((widow's peak))), (((beard, mustache))), (((earings))), ((horns)), ((clouds)), (((((Emaciated))))), (((style miniature))), ((sword)), ((stick)), wand, ((watermark)), ((text)), ((emblem)), ((logo)), ((modern clothes), (modern fabric)), ((makeup)), out of frame, ((sci fi fantasy)), ((a hologram)), ((Eve Ryder)), ((art deco)), neogeo
Steps: 21, Sampler: Euler a, CFG scale: 3.5, Seed: 1525469082, Face restoration: CodeFormer, Size: 512x512, Model hash: fe2cf8a20b, Model: Lexica_model
Time taken: 13m 7.33sTorch active/reserved: 7285/9320 MiB, Sys VRAM: 11377/12288 MiB (92.59%)

### What should have happened?

Analysis error occurred after changing the prompt.
Other prompts were/are working fine, before and afterwards.

### Commit where the problem happens

python: 3.10.6  •  torch: 1.13.1+cu117  •  xformers: N/A  •  gradio: 3.16.2  •  commit: a9fed7c3  •  checkpoint: fe2cf8a20b   https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/a9fed7c364061ae6efb37f797b6b522cb3cf7aa2

### What platforms do you use to access the UI ?

Windows

### What browsers do you use to access the UI ?

Google Chrome

### Command Line Arguments

```Shell
None
```


### List of extensions

sd-dynamic-prompts
LDSR
Lora
ScuNet
SwinIR
prompt-bracket-checker

### Console logs

```Shell
Traceback (most recent call last):
  File "D:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 337, in run_predict
    output = await app.get_blocks().process_api(
  File "D:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1013, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "D:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 911, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "D:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 540, in preprocess
    return self._round_to_precision(x, self.precision)
  File "D:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py", line 504, in _round_to_precision
    return int(round(num, precision))
TypeError: type list doesn't define __round__ method
```


### Additional information

_No response_