dar-tau commited on
Commit
c93fc2a
1 Parent(s): fc42682

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -49,7 +49,7 @@ def get_hidden_states(raw_original_prompt):
49
  tokens = tokenizer.batch_decode(model_inputs.input_ids)
50
  outputs = model(**model_inputs, output_hidden_states=True, return_dict=True)
51
  hidden_states = torch.stack([h.squeeze(0).cpu().detach() for h in outputs.hidden_states], dim=0)
52
- with gr.Row() as tokens_container:
53
  # for token in tokens:
54
  # gr.Button(token)
55
  return str(tokens)
 
49
  tokens = tokenizer.batch_decode(model_inputs.input_ids)
50
  outputs = model(**model_inputs, output_hidden_states=True, return_dict=True)
51
  hidden_states = torch.stack([h.squeeze(0).cpu().detach() for h in outputs.hidden_states], dim=0)
52
+ # with gr.Row() as tokens_container:
53
  # for token in tokens:
54
  # gr.Button(token)
55
  return str(tokens)