DrewThomasson / doc2interview

This is an interface that will offline convert anything pdf document you give it into an interview between two people discussing it.
1 stars 0 forks source link

error when using pdf files #1

Closed scalar27 closed 2 months ago

scalar27 commented 2 months ago

Thanks for the cool repo! I can't this to work with local pdf files, although URL's seem to work. I get this error:

ERROR:root:can only concatenate str (not "NoneType") to str

along with:

ERROR:root:Failed to fetch text from URL: Article download() failed with Invalid URL

and some very long paths on my local disk.

DrewThomasson commented 2 months ago

Oh yeah, the PDF file upload is broken right now.

DrewThomasson commented 2 months ago

I'll probably get around to fixing it on my end when I have time.

DrewThomasson commented 2 months ago

Just pushed a fix

both pdf and links should work in the gui now :)

Also improved the prompting system, should follow the prompt better now.

IE, made it give the prompt before and after the document

Like this:

ollama_input = Prompt + Document_text + Prompt