Browse Source

Another missing import

oobabooga 2 năm trước cách đây
mục cha
commit
8747c74339
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      modules/callbacks.py

+ 2 - 0
modules/callbacks.py

@@ -5,6 +5,8 @@ from threading import Thread
 import torch
 import transformers
 
+import modules.shared as shared
+
 
 # Copied from https://github.com/PygmalionAI/gradio-ui/
 class _SentinelTokenStoppingCriteria(transformers.StoppingCriteria):