Update app.py
Browse files
app.py
CHANGED
@@ -145,7 +145,7 @@ with gr.Blocks(theme=gr.themes.Default()) as demo:
|
|
145 |
with gr.Group('Output'):
|
146 |
tokens_container = []
|
147 |
with gr.Row():
|
148 |
-
for
|
149 |
btn = gr.Button('', visible=False)
|
150 |
btn.click(partial(run_interpretation, i=i), [global_state, interpretation_prompt, num_tokens, do_sample, temperature,
|
151 |
top_k, top_p, repetition_penalty, length_penalty
|
|
|
145 |
with gr.Group('Output'):
|
146 |
tokens_container = []
|
147 |
with gr.Row():
|
148 |
+
for i in range(MAX_PROMPT_TOKENS):
|
149 |
btn = gr.Button('', visible=False)
|
150 |
btn.click(partial(run_interpretation, i=i), [global_state, interpretation_prompt, num_tokens, do_sample, temperature,
|
151 |
top_k, top_p, repetition_penalty, length_penalty
|