SV08
4 years ago
| 19 | 19 | # return {'result': result} |
| 20 | 20 | |
| 21 | 21 | if __name__ == '__main__': |
| 22 | import main | |
| 23 | # conf={'start_words':"雨",'prefix_words':"天晴", 'max_gen_len':100} | |
| 22 | 24 | start_words = conf['start_words'] #诗歌开始 |
| 23 | 25 | prefix_words = conf['prefix_words'] #诗歌语境 |
| 24 | 26 | max_gen_len = conf['max_gen_len'] #诗歌最大长度 |
| 29 | 31 | } |
| 30 | 32 | result = main.gen(**cof) |
| 31 | 33 | result = ''.join(result) |
| 34 | # print(result) | |
| 32 | 35 | return {'ret1':result} |
| 33 | 36 | ⏎ |