devika
devika copied to clipboard
Pdf download in agent.py
Fixed these issues:
- The browser variable was not defined
- The async function in its replacement was not used
Solves #331
are you testing it properly? It's not working.
Issue:
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.
Here's a suggestion: Should we just comment out the 'open_page' function in the PDF download function?