You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pydantic_core._pydantic_core.ValidationError: 1 validation error for FileData
path
Field required [type=missing, input_value={}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.6/v/missing
Have you searched existing issues? 🔎
I have searched and found no existing issues
Reproduction
import{client}from"@gradio/client";constresponse_0=awaitfetch("https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png");constexampleImage=awaitresponse_0.blob();constresponse_1=awaitfetch("https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png");constexampleImage=awaitresponse_1.blob();constapp=awaitclient("https://levihsu-ootdiffusion.hf.space/--replicas/dnjhb/");constresult=awaitapp.predict("/process_dc",[exampleImage,// blob in 'Model' Image componentexampleImage,// blob in 'Garment' Image component "Upper-body",// string in 'Garment category (important option!!!)' Dropdown component 1,// number (numeric value between 1 and 4) in 'Images' Slider component 20,// number (numeric value between 20 and 40) in 'Steps' Slider component 1,// number (numeric value between 1.0 and 5.0) in 'Guidance scale' Slider component -1,// number (numeric value between -1 and 2147483647) in 'Seed' Slider component]);console.log(result.data);
Running on local URL: http://0.0.0.0:7860
To create a public link, set `share=True` in `launch()`.
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/gradio/queueing.py", line 527, in process_events
response = await route_utils.call_process_api(
File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 270, in call_process_api
output = await app.get_blocks().process_api(
File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1843, in process_api
inputs = await self.preprocess_data(
File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1575, in preprocess_data
inputs_cached = block.data_model(**inputs_cached) # type: ignore
File "/usr/local/lib/python3.10/site-packages/pydantic/main.py", line 176, in __init__
self.__pydantic_validator__.validate_python(data, self_instance=self)
pydantic_core._pydantic_core.ValidationError: 1 validation error for FileData
path
Field required [type=missing, input_value={}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.7/v/missing
Describe the bug
pydantic_core._pydantic_core.ValidationError: 1 validation error for FileData
path
Field required [type=missing, input_value={}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.6/v/missing
Have you searched existing issues? 🔎
Reproduction
Screenshot
No response
Logs
No response
System Info
Severity
Blocking usage of gradio
The text was updated successfully, but these errors were encountered: