-
Notifications
You must be signed in to change notification settings - Fork 0
CentraleSupelec/aristote-nudgis-enrich
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
# UBICAST IMPORT FOR ARISTOTE # REQUIREMENTS python ## Install python dependencies ``` pip install -r requirements.txt ``` For local development, create a virtual environment and activate it : ``` python3 -m venv env source env/bin/activate ``` ## Copy environments file into local ones ``` cp -f .env.dist .env ``` Change environment variables if necessary, particularly fill AristoteAPI credentials (the API Client) and the end-user-identifier to distingues the enrichment requests coming from this project. ## Copy the Ubicast config file ``` cp -f config.dist.json config.json ``` Fill in API_KEY and CLIENT_ID # Start server (proxy and webhook) ``` python3 ubicast.py ``` # Start importing videos from a Ubicast channel ``` python3 import_videos --channel <channel_oid> --update <all | stuck | quiz> --debug ``` or you can use a CSV file : ``` python3 import_videos --csv <path/to/csv> --update <all | stuck | quiz> ``` An example CSV file is provided : sample.csv For the update parameter : * all : For all videos of the channel(s) provided, request a new enrichment * stuck : For all videos of the channel(s) provided that are in a stuck state (PENDING, TRANSCRIBED, FAILURE), check status on Aristote : - if the enrichment is successful : get subtitles and submit them to the Ubicast platform - if the enrichment has failed or uploading the media is taking too long : request a new enrichment * quiz : For all videos of the channel(s) provided for which an enrichment has already been requested but have no generated quiz, request a new version on the same enrichment but with quiz
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published