Replies: 1 comment
-
maybe, do I have to do a formData?? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
api_name: /on_srcfile_changed
Accepts 1 parameter:
[0] undefined Required
The input value that is provided in the "Source File(s)" File component.
Returns list of 2 elements
[0] undefined
The output value that appears in the "Detected faces" Gallery component.
[1] undefined
The output value that appears in the "Input faces" Gallery component.
I tried with React+Vite but it doesn't work
OnSrcFile.jsx:34 Error fetching prediction:
{type: 'status', endpoint: '/on_srcfile_changed', fn_index: 4, time: Thu Apr 18 2024 11:12:10 GMT+0200 (hora de verano de Europa central), queue: true, …}
code
:
undefined
endpoint
:
"/on_srcfile_changed"
fn_index
:
4
message
:
"1 validation error for ListFiles\n Input should be a valid list [type=list_type, input_value={}, input_type=dict]\n For further information visit https://errors.pydantic.dev/2.6/v/list_type"
queue
:
true
stage
:
"error"
success
:
false
time
:
Thu Apr 18 2024 11:12:10 GMT+0200 (hora de verano de Europa central) {}
type
:
"status"
[[Prototype]]
:
Object
Error on Terminal
Traceback (most recent call last):
File "C:\Users\agus7\Desktop\roopUnleashed\roopUnleashed\installer\installer_files\env\lib\site-packages\gradio\queueing.py", line 527, in process_events
response = await route_utils.call_process_api(
File "C:\Users\agus7\Desktop\roopUnleashed\roopUnleashed\installer\installer_files\env\lib\site-packages\gradio\route_utils.py", line 261, in call_process_api
output = await app.get_blocks().process_api(
File "C:\Users\agus7\Desktop\roopUnleashed\roopUnleashed\installer\installer_files\env\lib\site-packages\gradio\blocks.py", line 1782, in process_api
inputs = await self.preprocess_data(
File "C:\Users\agus7\Desktop\roopUnleashed\roopUnleashed\installer\installer_files\env\lib\site-packages\gradio\blocks.py", line 1503, in preprocess_data
inputs_cached = block.data_model(root=inputs_cached) # type: ignore
File "C:\Users\agus7\Desktop\roopUnleashed\roopUnleashed\installer\installer_files\env\lib\site-packages\pydantic\root_model.py", line 73, in init
self.pydantic_validator.validate_python(root, self_instance=self)
pydantic_core._pydantic_core.ValidationError: 1 validation error for ListFiles
Input should be a valid list [type=list_type, input_value={}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.6/v/list_type
How can I do a well fetch to API?
Thank you all in advance!
Beta Was this translation helpful? Give feedback.
All reactions