lllyx commited on
Commit
3d60ca8
·
verified ·
1 Parent(s): ac28d4d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -96,7 +96,8 @@ with gr.Blocks(theme=gr.themes.Glass(), css=".gradio-container {max-width: 1280p
96
 
97
  gr.Markdown("### 2. Input Data")
98
  gr.Markdown("ℹ️ **Instructions**: Click the **✏️ Edit** button at the bottom right of the table, then click **+ Add row** to add a new row, or the trash can icon to delete a row.")
99
-
 
100
  data_input = gr.DataFrame(
101
  label="Data Table",
102
  headers=["subject", "relation", "object", "prompt_source"],
@@ -110,6 +111,9 @@ with gr.Blocks(theme=gr.themes.Glass(), css=".gradio-container {max-width: 1280p
110
 
111
  with gr.Column():
112
  gr.Markdown("### 3. View Inference Results")
 
 
 
113
  with gr.Tabs():
114
  with gr.TabItem("Results Table"):
115
  output_dataframe = gr.DataFrame(
 
96
 
97
  gr.Markdown("### 2. Input Data")
98
  gr.Markdown("ℹ️ **Instructions**: Click the **✏️ Edit** button at the bottom right of the table, then click **+ Add row** to add a new row, or the trash can icon to delete a row.")
99
+ gr.Markdown("**[subject,relation,object]**: A factual triple.")
100
+ gr.Markdown("**prompt_source**: A sentence which contains subject.")
101
  data_input = gr.DataFrame(
102
  label="Data Table",
103
  headers=["subject", "relation", "object", "prompt_source"],
 
111
 
112
  with gr.Column():
113
  gr.Markdown("### 3. View Inference Results")
114
+ gr.Markdown("**layer_source**: Starting from this layer of **prompt_source**, we extracted the hidden states corresponding to the subject.")
115
+ gr.Markdown("**is_correct_patched**: Whether the final answer is correct. If **object** is in **generations**, we think the final answer is correct.")
116
+ gr.Markdown("**generations**: The output obtained after the model continues inference following a patch operation.")
117
  with gr.Tabs():
118
  with gr.TabItem("Results Table"):
119
  output_dataframe = gr.DataFrame(