diff --git a/gui.py b/gui.py index 22038d7..94a56d1 100644 --- a/gui.py +++ b/gui.py @@ -11,7 +11,7 @@ def __init__(self): def analyse(self, api_key, pdf_file): self.session = PaperReader(api_key) - self.paper = Paper(pdf_file) + self.paper = Paper(pdf_file.name) return self.session.summarize(self.paper) def ask_question(self, question):