A FastAPI-based bot for the Bluesky social platform that automatically posts summarized dataset information from PRIDE Archive. The bot schedules posts throughout the day and manages a buffer of datasets to ensure regular updates.
- Uses the FLAN-T5 small model for summarizing dataset descriptions.
- Posts to Bluesky five times a day at scheduled times.
- Manages a daily buffer to avoid repetitive posting.
- Configurable with environment-specific settings.
-
Clone the repository:
git clone <repository-url> cd <repository-directory>
-
Install dependencies:
conda env create -f environment.yml
-
Configure environment variables: Ensure the
BLUESKY_HANDLE
andBLUESKY_PASSWORD
variables are set in theconfig.ini
file or as environment variables. -
Create a config.ini file: Example
config.ini
file:[DEFAULT] PORT = 8000 [TEST] BLUESKY_HANDLE = "your_bluesky_handle" BLUESKY_PASSWORD = "your_bluesky_password" PORT = 8000
Start the bot using the following command:
python main.py --config-file config.ini --config-profile TEST