dataset-tldr / main.py

Commit History

Add follow_redirects parameter to async_httpx_client.get() call
2be9bc2

davanstrien HF staff commited on

Update API base URL and remove unnecessary code
646eba0

davanstrien HF staff commited on

Update base_url in predict function
bdf0ce8

davanstrien HF staff commited on

Update API base URL and add follow redirects in get_summary function
3aa07be

davanstrien HF staff commited on

Fix error handling in get_summary function
810d3a0

davanstrien HF staff commited on

Fix exception handling in get_summary function
4c88070

davanstrien HF staff commited on

Add logging configuration to main.py
716758b

davanstrien HF staff commited on

Add logger info for existing votes file
e51c8cf

davanstrien HF staff commited on

Update FastAPI configuration
148a6b2

davanstrien HF staff commited on

Update CORS settings in main.py
f0a144e

davanstrien HF staff commited on

Add CORS configuration for frontend URL
c616690

davanstrien HF staff commited on

Refactor code and add new functionality
fe9092a

davanstrien HF staff commited on

Update CommitScheduler frequency to every 5 mins
ec5b5a2

davanstrien HF staff commited on

Refactor save_vote function to use a lock for thread safety
ef69b25

davanstrien HF staff commited on

Refactor save_vote function to write each vote entry with a newline character
a0dfa27

davanstrien HF staff commited on

Add path_in_repo parameter to CommitScheduler constructor
0a15754

davanstrien HF staff commited on

Update votes file path
5ee18ab

davanstrien HF staff commited on

Update CommitScheduler instantiation
1a058f6

davanstrien HF staff commited on

Refactor main.py
cc9c5eb

davanstrien HF staff commited on

Add startup event logging
51484a8

davanstrien HF staff commited on

Add logging and improve error handling
97809c3

davanstrien HF staff commited on

Update repository ID to "davanstrien/summary-ratings"
c80be55

davanstrien HF staff commited on

Add HTTPException for invalid token validation
2d83410

davanstrien HF staff commited on

Refactor code and remove unnecessary CORS middleware
419fdd6

davanstrien HF staff commited on

Remove unnecessary print statements in receive_vote function
a296dd1

davanstrien HF staff commited on

Fix typo in Access-Control-Allow-Headers header
75141de

davanstrien HF staff commited on

Update Access-Control-Allow-Origin value in receive_vote function
0724f28

davanstrien HF staff commited on

Update CORS origins in main.py
3b354b4

davanstrien HF staff commited on

Add CORS support and update vote endpoint response headers
becbbb8

davanstrien HF staff commited on

Add FastAPI import and update unauthorized response
88c2e3b

davanstrien HF staff commited on

Add validation to the 'vote' field in the Vote model
c892caa

davanstrien HF staff commited on

Add token parameter to CommitScheduler constructor and update authorization response
6ca460a

davanstrien HF staff commited on

Update imports in main.py
6d8e1bf

davanstrien HF staff commited on

Refactor code and update dependencies
3b22eeb

davanstrien HF staff commited on

Add root endpoint redirect to /docs
c0cfc84

davanstrien HF staff commited on

Add asynccontextmanager and lifespan to main.py
6ac4ade

davanstrien HF staff commited on

Update max number of requests to datasets server
94ae8af

davanstrien HF staff commited on

Add language_threshold_percent parameter to predict_rows function
f9987db

davanstrien HF staff commited on

Update main.py
4aeaa3b
verified

davanstrien HF staff commited on

Update FastAPI import to include Query
6d286c3

davanstrien HF staff commited on

Import logging module and reorder imports
fd21f2f

davanstrien HF staff commited on

Refactor code and add type annotations
1b8ac52

davanstrien HF staff commited on

Refactor imports and remove unused code
5a41550

davanstrien HF staff commited on

Add language parsing functionality and update dependencies
bc828c5

davanstrien HF staff commited on

Refactor predict_rows function to include raw predictions
a2d40e3

davanstrien HF staff commited on

Add logging and comment out unused code
76a283e

davanstrien HF staff commited on

Add caching functionality for model download and prediction
d350b44

davanstrien HF staff commited on

Add fastapi.responses and starlette.responses imports
41869c7

davanstrien HF staff commited on

Add HF_HUB_ENABLE_HF_TRANSFER environment variable
f1bc1ad

davanstrien HF staff commited on