davila7 / file-gpt

Start a chat with any document with Ada Embedding and Davinci Completion
MIT License
142 stars 34 forks source link

UnhashableParamError: Cannot hash argument 'docs' (of type builtins.list) in 'embed_docs'. #1

Closed victorhugor45 closed 1 year ago

victorhugor45 commented 1 year ago

Hola Daniel Davila

Me pareció muy interesante file-gpr y quise probarla. La clone, la instale de acuerdo al readme y después de un par de errores con el streamlit y la cache deprecada, la aplicación me levanta.

image

UnhashableParamError: Cannot hash argument 'docs' (of type builtins.list) in 'embed_docs'.

To address this, you can tell Streamlit not to hash this argument by adding a leading underscore to the argument's name in the function signature:

@st.cache_data def embed_docs(_docs, ...): ... Traceback: File "C:\Users\vrodriguez\file-gpt\app.py", line 62, in index = embed_docs(text)

davila7 commented 1 year ago

@victorhugor45 con que versión de python la estás ejecutando?

victorhugor45 commented 1 year ago

Python 3.10.2

victorhugor45 commented 1 year ago

Recién actualice la ultima versión Python 3.11.2, y el problema persiste.

davila7 commented 1 year ago

Yo estoy trabajando en la versión 3.9 Podrías probar con esa