[Bug]: Scripting: Group element suddenly does not support 'as' anymore.
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
Just an hour ago there was no problem writing something like with gr.Group() as TabContainer: and then using that as a function element so that group does not appear. Now it produces this:
Traceback (most recent call last): File "C:\Users\joedo\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 275, in run_predict output = await app.blocks.process_api( File "C:\Users\joedo\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 784, in process_api inputs = self.preprocess_data(fn_index, inputs, state) File "C:\Users\joedo\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 679, in preprocess_data processed_input.append(block.preprocess(raw_input[i])) AttributeError: 'Group' object has no attribute 'preprocess'
If the as element is removed everything works (but, of course, that element is visible all the time).
Steps to reproduce the problem
Have a group element formatted like this: with gr.Group() as TabContainer:
What should have happened?
No error message, element works as expected.
Commit where the problem happens
f4e14642173a04723200b131deb417c6c79cab17
What platforms do you use to access UI ?
Windows
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
No response
Additional information, context and logs
No response