Spaces:
Build error
Build error
| import os | |
| from dotenv import load_dotenv | |
| load_dotenv() | |
| STORY_TELLING_API = os.environ.get("STORYTELLINGS_HOST", "localhost") | |
| script_and_config = { | |
| "ai_tutor": { | |
| "path": "config/AI_Tutor_modified.json", | |
| "var": { | |
| # Hardcoded | |
| "answer_2_1": "His mum", | |
| "answer_2_2": "He signed a recording contract", | |
| "answer_2_3": "He is a record producer, actor, DJ and a businessman", | |
| "answer_2_4": "Science and Technology", | |
| "answer_3_1": "Because he is very talented. He also uses his own money to help young people get a better education", | |
| "answer_3_2": "She plays her favourite Black Eyed Peas song", | |
| "file_track_1": "track_1.mp3", | |
| "file_track_2": "track_2.mp3", | |
| "file_track_3": "track_3.mp3", | |
| }, | |
| "type": "ai" | |
| }, | |
| "ai_tutor_test": { | |
| "path": "config/AI_Tutor_short.json", | |
| "var": { | |
| # Hardcoded | |
| "answer_2_1": "His mum", | |
| "answer_2_2": "He signed a recording contract", | |
| "answer_2_3": "He is a record producer, actor, DJ and a businessman", | |
| "answer_2_4": "Science and Technology", | |
| "answer_3_1": "Because he is very talented. He also uses his own money to help young people get a better education", | |
| "answer_3_2": "She plays her favourite Black Eyed Peas song", | |
| "file_track_1": "data/ai_tutor/track_1.mp3", | |
| "file_track_2": "data/ai_tutor/track_2.mp3", | |
| "file_track_3": "data/ai_tutor/track_3.mp3", | |
| }, | |
| "type": "ai" | |
| }, | |
| "example": { | |
| "path": "config/example.json", | |
| "var": { | |
| "answer_2_1": "His mum", | |
| }, | |
| "type": "ai" | |
| }, | |
| "[OLLI ft. Mighty Jaxx] Story 1 -- Peppa prepares Lunch": { | |
| "type": "ai", | |
| "path": "config/mj_guided_first.json", | |
| }, | |
| "[OLLI ft. Mighty Jaxx] Story 2 -- Peppa at the Market": { | |
| "path": "config/mj_guided_second.json", | |
| "type": "ai" | |
| }, | |
| "mj1-be": { | |
| "url": f"{STORY_TELLING_API}/story/guided/scenario?diorama_nfc_id=diorama-demo1&character_nfc_id=character-demo1", | |
| "type": "backend-admin" | |
| }, | |
| "mj2-be": { | |
| "url": f"{STORY_TELLING_API}/story/guided/scenario?diorama_nfc_id=diorama-demo2&character_nfc_id=character-demo1", | |
| "type": "backend-admin" | |
| }, | |
| "mj1-be-local": { | |
| "path": "config/mj_guided_first_be.json", | |
| "type": "backend-admin" | |
| }, | |
| "mj2-be-local": { | |
| "path": "config/mj_guided_second_be.json", | |
| "type": "backend-admin" | |
| }, | |
| "open-ended-local-test": { | |
| "path": "config/open_ended_test.json", | |
| "type": "ai" | |
| }, | |
| } | |
| ai_tutor = "config/AI_Tutor.csv" | |