Spaces:
Sleeping
Sleeping
adding application
Browse files
app.py
CHANGED
@@ -309,14 +309,14 @@ with gr.Blocks(theme="soft") as demo:
|
|
309 |
label="Patchscopes prompt (use X as placeholder)",
|
310 |
value="repeat the following word X twice: 1)X 2)",
|
311 |
)
|
312 |
-
|
313 |
word_box = gr.Textbox(label="Word to test", value="interpretable")
|
314 |
run_btn = gr.Button("Analyse")
|
315 |
out_html = gr.HTML()
|
316 |
|
317 |
run_btn.click(
|
318 |
analyse_word,
|
319 |
-
inputs=[model_name, word_box, patchscopes_template],
|
320 |
outputs=out_html,
|
321 |
)
|
322 |
|
|
|
309 |
label="Patchscopes prompt (use X as placeholder)",
|
310 |
value="repeat the following word X twice: 1)X 2)",
|
311 |
)
|
312 |
+
context_box = gr.Textbox(label="context", value="")
|
313 |
word_box = gr.Textbox(label="Word to test", value="interpretable")
|
314 |
run_btn = gr.Button("Analyse")
|
315 |
out_html = gr.HTML()
|
316 |
|
317 |
run_btn.click(
|
318 |
analyse_word,
|
319 |
+
inputs=[model_name, word_box, patchscopes_template, context_box],
|
320 |
outputs=out_html,
|
321 |
)
|
322 |
|