brunoamaral / gregory-ai

Artificial Intelligence and Machine Learning to help find scientific research and filter relevant content
https://gregory-ai.com/
Other
47 stars 7 forks source link

redundant code in predict.py ? #293

Closed brunoamaral closed 1 year ago

brunoamaral commented 1 year ago

Looking at the prediction script, I think I made a few mistakes. Like this for example:

https://github.com/brunoamaral/gregory/blob/e6602c10ea792ca4d871efc0f159c6b411ecd0b6/django/gregory/3_predict.py#L75-L78

Was wondering if it would be useful to turn it into a function and apply as soon as a new article is added to the db.