add more logs
Browse files
app.py
CHANGED
@@ -15,11 +15,11 @@ annotator = errant.load('en', nlp)
|
|
15 |
errant_path = os.path.join(os.path.dirname("./"), 'errant_verbose.json')
|
16 |
errant_verbose = json.load(open(errant_path, "r"))
|
17 |
sent_detector = nltk.data.load('./nltk_data/tokenizers/punkt/english.pickle')
|
18 |
-
|
19 |
# Load text editor (TinyLlama)
|
20 |
text_editor = Llama(
|
21 |
model_path="./texteditor-model/coedit-tinyllama-chat-bnb-4bit-unsloth.Q4_K_M.gguf",
|
22 |
-
verbose=
|
23 |
)
|
24 |
print("text editor is loaded!")
|
25 |
|
|
|
15 |
errant_path = os.path.join(os.path.dirname("./"), 'errant_verbose.json')
|
16 |
errant_verbose = json.load(open(errant_path, "r"))
|
17 |
sent_detector = nltk.data.load('./nltk_data/tokenizers/punkt/english.pickle')
|
18 |
+
print("Loading models ...")
|
19 |
# Load text editor (TinyLlama)
|
20 |
text_editor = Llama(
|
21 |
model_path="./texteditor-model/coedit-tinyllama-chat-bnb-4bit-unsloth.Q4_K_M.gguf",
|
22 |
+
verbose=True
|
23 |
)
|
24 |
print("text editor is loaded!")
|
25 |
|