diff --git a/.ipynb_checkpoints/main-checkpoint.py b/.ipynb_checkpoints/main-checkpoint.py index e9073ba..4d14668 100644 --- a/.ipynb_checkpoints/main-checkpoint.py +++ b/.ipynb_checkpoints/main-checkpoint.py @@ -2,7 +2,7 @@ import os import sys -# sys.path.append('../') +sys.path.append('../') # Import necessary packages # from modules import json_parser from modules import Client @@ -38,7 +38,7 @@ return {"Poetry": 'asadd'} -# if __name__ == '__main__': -# conf = {"style": ['藏头诗'], "Chinese_word": '杨赛赛'} -# aa = handle(conf) -# print(aa) +if __name__ == '__main__': + conf = {"style": ['藏头诗'], "Chinese_word": '杨赛赛'} + aa = handle(conf) + print(aa) diff --git a/app_spec.yml b/app_spec.yml index 101b89c..c88db25 100644 --- a/app_spec.yml +++ b/app_spec.yml @@ -1,11 +1,3 @@ -# input: -# your_param_name: -# value_type: 'int' -# output: -# your_result_name: -# value_type: 'int' - - input: Chinese_word: value_type: "str" diff --git a/main.py b/main.py index e9073ba..4d14668 100644 --- a/main.py +++ b/main.py @@ -2,7 +2,7 @@ import os import sys -# sys.path.append('../') +sys.path.append('../') # Import necessary packages # from modules import json_parser from modules import Client @@ -38,7 +38,7 @@ return {"Poetry": 'asadd'} -# if __name__ == '__main__': -# conf = {"style": ['藏头诗'], "Chinese_word": '杨赛赛'} -# aa = handle(conf) -# print(aa) +if __name__ == '__main__': + conf = {"style": ['藏头诗'], "Chinese_word": '杨赛赛'} + aa = handle(conf) + print(aa)