LennardZuendorf commited on
Commit
4e18c39
·
1 Parent(s): b47db5f

fix: fixing bug

Browse files
Files changed (1) hide show
  1. explanation/visualize.py +1 -2
explanation/visualize.py CHANGED
@@ -3,7 +3,6 @@
3
 
4
  # internal imports
5
  from utils import formatting as fmt
6
- from model.model import CONFIG
7
  from .markup import markup_text
8
 
9
 
@@ -17,7 +16,7 @@ def chat_explained(model, prompt):
17
  ).input_ids
18
  # generate output together with attentions of the model
19
  decoder_input_ids = model.MODEL.generate(
20
- encoder_input_ids, output_attentions=True, **CONFIG
21
  )
22
 
23
  # get input and output text as list of strings
 
3
 
4
  # internal imports
5
  from utils import formatting as fmt
 
6
  from .markup import markup_text
7
 
8
 
 
16
  ).input_ids
17
  # generate output together with attentions of the model
18
  decoder_input_ids = model.MODEL.generate(
19
+ encoder_input_ids, output_attentions=True, **model.CONFIG
20
  )
21
 
22
  # get input and output text as list of strings