Commit History

Update vote processing to default HF_REVISION to 'staging'
593e0a3

eberling1 commited on

Enhance vote validation by incorporating Authorization header for hf_token and updating validate_vote_payload function to accept it as an argument.
8183844

eberling1 commited on

Automated update of metadata.json with votes.json
53d19be

eberling1 commited on

Enhance vote processing by adding client IP tracking and duplicate vote prevention.
d8a3fad

eberling1 commited on

Refactor voting logic: Removed global votes handling from the commit_vote_updates and process_vote functions.
168e970

eberling1 commited on

Add voting functionality to app.py: Implemented a new route to handle user votes via a POST request, including JSON validation and error handling. Updated config.py to include paths for votes, and enhanced hf_repo.py with functions to commit vote updates. Modified webhooks.py to create missing votes files during indexation.
b83ff8a

eberling1 commited on