Turing-Project / WriteGPT

基于开源GPT2.0的初代创作型人工智能 | 可扩展、可进化
MIT License
5.32k stars 915 forks source link

网页版无法正常运行,😭 #44

Open hoppop-web opened 1 year ago

hoppop-web commented 1 year ago

报错如下:

!cat /usr/local/lib/python3.6/dist-packages/tensorflow_core/python/tpu/tpu_feed.py

@title #文章生成模块

作文最小篇幅 = 850 #@param {type:"number", min:800, max:1024, step:1} 生成作文篇数 = 1 #@param {type:"number", min:1, max:100, step:1} %mv /home/EssayKiller_V2/LanguageNetwork/GPT2/finetune/models/mega/* /home/EssayKiller_V2/LanguageNetwork/GPT2/finetune/trained_models/ %cd /home/EssayKiller_V2/LanguageNetwork/GPT2/ !export TF_CPP_MIN_LOG_LEVEL=2 !echo '模型加载中,请稍后......' !PYTHONPATH=$(pwd) python scripts/demo.py -ckpt_fn finetune/trained_models/model.ckpt-280000 -min_len $作文最小篇幅 -samples $生成作文篇数 !PYTHONPATH=$(pwd) python scripts/formatter.py -org_text result.txt

hoppop-web commented 1 year ago

对不起,才看到QandA,还是挺想试试的