Spaces:
Runtime error
Runtime error
File size: 1,096 Bytes
361479c 4f8f8b7 361479c 4f8f8b7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
from token import OP
from commands import ResponseManager
from dotenv import load_dotenv
import os
load_dotenv()
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
OPENAI_ORGANIZATION = os.getenv("OPENAI_ORGANIZATION")
MODEL = os.getenv("MODEL")
rs = ResponseManager()
resoponses = {
"heated_seats_on": rs.activate_heated_seats,
"heated_seats_off": rs.deactivate_heated_seats,
"cooled_seats_on": rs.activate_cooled_seats,
"cooled_seats_off": rs.deactivate_cooled_seats,
"massage_seats_on": rs.activate_massage_seats,
"massage_seats_off": rs.deactivate_massage_seats,
}
id2label = {
1: "massage_seats_on",
2: "massage_seats_off",
3: "heated_seats_on",
4: "heated_seats_off",
5: "cooled_seats_on",
6: "cooled_seats_off",
}
text_respnses = {
"massage_seats_on": "Massage seats activated",
"massage_seats_off": "Massage seats deactivated",
"heated_seats_on": "Heated seats activated",
"heated_seats_off": "Heated seats deactivated",
"cooled_seats_on": "Cooled seats activated",
"cooled_seats_off": "Cooled seats deactivated",
}
|