Guy24 commited on
Commit
335cdfa
·
1 Parent(s): 1d82598

adding application

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- word_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],
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