devika icon indicating copy to clipboard operation
devika copied to clipboard

Pdf download in agent.py

Open Parth-Jain-2002 opened this issue 10 months ago • 3 comments

Fixed these issues:

  1. The browser variable was not defined
  2. The async function in its replacement was not used

Parth-Jain-2002 avatar Apr 03 '24 20:04 Parth-Jain-2002

Solves #331

Parth-Jain-2002 avatar Apr 03 '24 20:04 Parth-Jain-2002

are you testing it properly? It's not working.

ARajgor avatar Apr 04 '24 18:04 ARajgor

Issue: image

In this report function, the file is downloaded to the 'data/pdf' folder, and users can also access the PDF via the URL in the chat interface. However, there's was an issue with the open_page function. When it was accessing the URL—it returns the PDF file directly instead of a webpage. Consequently, we can't capture a screenshot of it. image

Here's a suggestion: Should we just comment out the 'open_page' function in the PDF download function? image image

Parth-Jain-2002 avatar Apr 04 '24 20:04 Parth-Jain-2002