Skip to content
TheChatArchiveThe Chat Archive
gpt-3.5-turbo-0125· OpenAIAi2 WildChat-4.8M (AI2)

analizando el mensaje de error que introduciré al final, sería conveniente añadir el…

  1. User

    analizando el mensaje de error que introduciré al final, sería conveniente añadir el comando '_move_to_cache' en el archivo 'processing_utils.py' para solucionar el siguiente error?:

    Traceback (most recent call last): File "/Users/raul/Downloads/roop-OLD/fast_roop/lib/python3.11/site-packages/gradio/queueing.py", line 501, in call_prediction output = await route_utils.call_process_api( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/raul/Downloads/roop-OLD/fast_roop/lib/python3.11/site-packages/gradio/route_utils.py", line 258, in call_process_api output = await app.get_blocks().process_api( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/raul/Downloads/roop-OLD/fast_roop/lib/python3.11/site-packages/gradio/blocks.py", line 1682, in process_api inputs = self.preprocess_data(fn_index, inputs, state, explicit_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/raul/Downloads/roop-OLD/fast_roop/lib/python3.11/site-packages/gradio/blocks.py", line 1406, in preprocess_data inputs_cached = processing_utils.move_files_to_cache( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/raul/Downloads/roop-OLD/fast_roop/lib/python3.11/site-packages/gradio/processing_utils.py", line 339, in move_files_to_cache return client_utils.traverse(data, _move_to_cache, client_utils.is_file_obj) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/raul/Downloads/roop-OLD/fast_roop/lib/python3.11/site-packages/gradio_client/utils.py", line 983, in traverse new_obj.append(traverse(item, func, is_root)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/raul/Downloads/roop-OLD/fast_roop/lib/python3.11/site-packages/gradio_client/utils.py", line 974, in traverse return func(json_obj) ^^^^^^^^^^^^^^ File "/Users/raul/Downloads/roop-OLD/fast_roop/lib/python3.11/site-packages/gradio/processing_utils.py", line 312, in _move_to_cache raise ValueError( ValueError: File /private/var/folders/6k/zk46_fz90rs2xmmczhwr7m7r0000gn/T/8617a7e63dcbfd2271130d239ef50c4f8a056130/FV PP2 R.jpg is not in the upload folder and cannot be accessed.

  2. Assistant

    Sí, sería conveniente añadir el comando '_move_to_cache' en el archivo 'processing_utils.py' para solucionar el error. Al parecer, el problema radica en que el archivo 'FV PP2 R.jpg' no se encuentra en la carpeta de carga y por lo tanto no se puede acceder a él. Al agregar esta función, se podría mover el archivo a la caché y así evitar este error de acceso.