Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ensure thumbnails and screenshots directories exist #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

pablopda
Copy link

The absence of the thumbnails folder was causing the process to fail. This commit:

  • Adds directory creation for both 'thumbnails' and 'screenshots' at the start of the analyze_website function
  • Uses os.makedirs() with exist_ok=True to safely create directories
  • Add thumbnails and screenshots folders to .gitignore

This change guarantees the necessary directories exist before any operations that require them, resolving the runtime failure.

The absence of the thumbnails folder was causing the process to fail. This commit:

- Adds directory creation for both 'thumbnails' and 'screenshots' at the start of the analyze_website function
- Uses os.makedirs() with exist_ok=True to safely create directories
- Add thumbnails and screenshots folders to .gitignore

This change guarantees the necessary directories exist before any operations that require them, resolving the runtime failure.
…tion

- Pass initial_analysis from analyze_website to agents.analyze_website
- Update agents.py to include initial_analysis in the evaluation message
- Improve overall analysis by considering both visual and textual elements

This change enhances the website evaluation process by utilizing the
initial visual analysis, leading to more comprehensive and accurate results.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant