Update app.py
Browse files
app.py
CHANGED
@@ -137,7 +137,6 @@ css = '''
|
|
137 |
|
138 |
# '''
|
139 |
|
140 |
-
progress = gr.Progress()
|
141 |
with gr.Blocks(theme=gr.themes.Default(), css=css) as demo:
|
142 |
global_state = gr.State([])
|
143 |
with gr.Row():
|
@@ -185,7 +184,7 @@ with gr.Blocks(theme=gr.themes.Default(), css=css) as demo:
|
|
185 |
tokens_container.append(btn)
|
186 |
interpretation_bubbles = [gr.Textbox('', container=False, visible=False, elem_classes=['bubble'])
|
187 |
for i in range(model.config.num_hidden_layers)]
|
188 |
-
|
189 |
for i, btn in enumerate(tokens_container):
|
190 |
btn.click(partial(run_interpretation, i=i), [progress,
|
191 |
global_state, interpretation_prompt, num_tokens, do_sample, temperature,
|
|
|
137 |
|
138 |
# '''
|
139 |
|
|
|
140 |
with gr.Blocks(theme=gr.themes.Default(), css=css) as demo:
|
141 |
global_state = gr.State([])
|
142 |
with gr.Row():
|
|
|
184 |
tokens_container.append(btn)
|
185 |
interpretation_bubbles = [gr.Textbox('', container=False, visible=False, elem_classes=['bubble'])
|
186 |
for i in range(model.config.num_hidden_layers)]
|
187 |
+
progress = gr.Progress()
|
188 |
for i, btn in enumerate(tokens_container):
|
189 |
btn.click(partial(run_interpretation, i=i), [progress,
|
190 |
global_state, interpretation_prompt, num_tokens, do_sample, temperature,
|