Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fromage image skill fixed * codestyle fixed for pr
- Loading branch information
1 parent
442bb26
commit b6f6726
Showing
2 changed files
with
23 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,40 @@ | ||
import logging | ||
|
||
from df_engine.core.keywords import ( | ||
TRANSITIONS, | ||
RESPONSE, | ||
) | ||
from df_engine.core.keywords import TRANSITIONS, RESPONSE, PROCESSING, GLOBAL, LOCAL | ||
from df_engine.core import Actor | ||
|
||
import common.dff.integration.processing as int_prs | ||
|
||
from . import condition as loc_cnd | ||
from . import response as loc_rsp | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
flows = { | ||
"global_flow": { | ||
"start": { | ||
RESPONSE: "", | ||
TRANSITIONS: { | ||
("fromage_caption_response", "general_node"): loc_cnd.caption_condition, | ||
GLOBAL: { | ||
TRANSITIONS: {("response", "caption"): loc_cnd.caption_condition}, | ||
}, | ||
"response": { | ||
LOCAL: { | ||
PROCESSING: { | ||
"set_confidence": int_prs.set_confidence(1.0), | ||
"set_can_continue": int_prs.set_can_continue(), | ||
}, | ||
}, | ||
"fallback": { | ||
RESPONSE: "", | ||
"caption": { | ||
RESPONSE: loc_rsp.generic_response, | ||
PROCESSING: {}, | ||
TRANSITIONS: {}, | ||
}, | ||
}, | ||
"fromage_caption_response": { | ||
"general_node": { | ||
RESPONSE: loc_rsp.generic_response, | ||
"global_flow": { | ||
"start": { | ||
TRANSITIONS: {}, | ||
}, | ||
"fallback": { | ||
TRANSITIONS: {}, | ||
}, | ||
}, | ||
} | ||
|
||
actor = Actor( | ||
flows, | ||
start_label=("global_flow", "start"), | ||
fallback_label=("global_flow", "fallback"), | ||
) | ||
|
||
logger.info("Actor created successfully") | ||
actor = Actor(flows, start_label=("global_flow", "start"), fallback_label=("global_flow", "fallback")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters