Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
www committed Oct 27, 2021
1 parent e1babeb commit ccc9a05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
train_dataset.itos = {int(k): v for k, v in word_table.items()}
UNKNOWN_CHAR = train_dataset.stoi['\ue083']

print('\nLoading model...', end=' ')
print(f'\nLoading model for {RUN_DEVICE}...', end=' ')
if RUN_DEVICE == 'dml':
import onnxruntime as rt
sess_options = rt.SessionOptions()
Expand Down
2 changes: 1 addition & 1 deletion server.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def NeuralWorker(queueZ, queueX):
print('请关注我的知乎 https://zhuanlan.zhihu.com/p/394766831')
print('\n声明:模型的训练数据全部来自网文,缺乏生活常识。生成的文字仅供娱乐。请遵守法律法规。')

print('loading model...')
print(f'\nLoading model for {RUN_DEVICE}...', end=' ')

with open(WORD_NAME + '.json', "r", encoding="utf-16") as result_file:
word_table = json.load(result_file)
Expand Down

0 comments on commit ccc9a05

Please sign in to comment.