Git Product home page Git Product logo

Comments (11)

bhaskatripathi avatar bhaskatripathi commented on August 23, 2024

could you please try now. I had added a temporary embeddings file which was causing this error. Now I am able to run it correctly:
image

from pdfgpt.

xaccell avatar xaccell commented on August 23, 2024

Did you fix the source code also so I could try it locally?

from pdfgpt.

bhaskatripathi avatar bhaskatripathi commented on August 23, 2024

yes, please get the latest code

from pdfgpt.

zerickk avatar zerickk commented on August 23, 2024

I just pulled the latest code and am also experiencing this issue.
"FileExistsError: [WinError 183] Cannot create a file when that file already exists: "

from pdfgpt.

bhaskatripathi avatar bhaskatripathi commented on August 23, 2024

Please use this file
https://huggingface.co/spaces/bhaskartripathi/pdfChatter/blob/main/app.py

from pdfgpt.

zerickk avatar zerickk commented on August 23, 2024

Please use this file https://huggingface.co/spaces/bhaskartripathi/pdfChatter/blob/main/app.py

Thank you. I just tried and still have the same error.

from pdfgpt.

bhaskatripathi avatar bhaskatripathi commented on August 23, 2024

The error you are getting is because the earlier code was checking if the embedding is created and save temporarily, it is not reloaded. This can save the computational effort of creating embedding on every call. However, as that code had some issue, I had removed that from the latest version. It looks like you are still using the previous code. Could you plz do a viewdiff ?

from pdfgpt.

zerickk avatar zerickk commented on August 23, 2024

I just copied the text from the link you sent and ran it. It has the changes indicated by hugginface on lines 52 and 188.
Line 52: chunk = f'[Page no. {idx+start_page}]' + ' ' + '"' + chunk + '"'
Is this the correct version?

from pdfgpt.

bhaskatripathi avatar bhaskatripathi commented on August 23, 2024

Yes that is correct

from pdfgpt.

xaccell avatar xaccell commented on August 23, 2024

the error still happens after a while

from pdfgpt.

bhaskatripathi avatar bhaskatripathi commented on August 23, 2024

I have tried it again and again but Not able to replicate it anymore.

from pdfgpt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.