e5941e5
SV08 4 years ago
1 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
1919 # return {'result': result}
2020
2121 if __name__ == '__main__':
22 import main
23 # conf={'start_words':"雨",'prefix_words':"天晴", 'max_gen_len':100}
2224 start_words = conf['start_words'] #诗歌开始
2325 prefix_words = conf['prefix_words'] #诗歌语境
2426 max_gen_len = conf['max_gen_len'] #诗歌最大长度
2931 }
3032 result = main.gen(**cof)
3133 result = ''.join(result)
34 # print(result)
3235 return {'ret1':result}
3336