Update app.py
Browse files
app.py
CHANGED
@@ -81,7 +81,7 @@ def get_hidden_states(raw_original_prompt):
|
|
81 |
+ [gr.Button('', visible=False) for _ in range(MAX_PROMPT_TOKENS - len(tokens))])
|
82 |
progress_dummy_output = ''
|
83 |
invisible_bubbles = [gr.Textbox('', visible=False) for i in range(MAX_NUM_LAYERS)]
|
84 |
-
global_state.hidden_states = hidden_states
|
85 |
return [progress_dummy_output, *token_btns, *invisible_bubbles]
|
86 |
|
87 |
|
|
|
81 |
+ [gr.Button('', visible=False) for _ in range(MAX_PROMPT_TOKENS - len(tokens))])
|
82 |
progress_dummy_output = ''
|
83 |
invisible_bubbles = [gr.Textbox('', visible=False) for i in range(MAX_NUM_LAYERS)]
|
84 |
+
global_state.hidden_states = hidden_states.cpu()
|
85 |
return [progress_dummy_output, *token_btns, *invisible_bubbles]
|
86 |
|
87 |
|