[Update] Save and register -able.
This commit is contained in:
@@ -996,6 +996,15 @@ class Controller:
|
||||
response = {"status":200, "result":config.SPEAKER_MAX_PHRASES}
|
||||
return response
|
||||
|
||||
@staticmethod
|
||||
def getHotkeys(*args, **kwargs) -> dict:
|
||||
return {"status":200, "result":config.HOTKEYS}
|
||||
|
||||
@staticmethod
|
||||
def setHotkeys(data, *args, **kwargs) -> dict:
|
||||
config.HOTKEYS = data
|
||||
return {"status":200, "result":config.HOTKEYS}
|
||||
|
||||
@staticmethod
|
||||
def getSpeakerAvgLogprob(*args, **kwargs) -> dict:
|
||||
return {"status":200, "result":config.SPEAKER_AVG_LOGPROB}
|
||||
|
||||
Reference in New Issue
Block a user