Update app.py
Browse files
app.py
CHANGED
@@ -203,11 +203,10 @@ with gr.Blocks(theme=gr.themes.Default(), css='styles.css') as demo:
|
|
203 |
model_chooser.change(reset_model, [model_chooser, *extra_components], extra_components)
|
204 |
|
205 |
for i, btn in enumerate(tokens_container):
|
206 |
-
btn.click(partial(run_interpretation, i=i),
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
), [progress_dummy, *interpretation_bubbles])
|
211 |
|
212 |
original_prompt_btn.click(get_hidden_states,
|
213 |
[original_prompt_raw],
|
|
|
203 |
model_chooser.change(reset_model, [model_chooser, *extra_components], extra_components)
|
204 |
|
205 |
for i, btn in enumerate(tokens_container):
|
206 |
+
btn.click(partial(run_interpretation, i=i), [interpretation_prompt,
|
207 |
+
num_tokens, do_sample, temperature,
|
208 |
+
top_k, top_p, repetition_penalty, length_penalty
|
209 |
+
], [progress_dummy, *interpretation_bubbles])
|
|
|
210 |
|
211 |
original_prompt_btn.click(get_hidden_states,
|
212 |
[original_prompt_raw],
|