qinghuazhou commited on
Commit
840da14
·
1 Parent(s): 52590d2

updated images

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -166,9 +166,7 @@ with gr.Blocks(theme=gr.themes.Soft(text_size="sm")) as demo:
166
 
167
  Let's try to use stealth edit to correct a 'hallucination'... Please first insert a hallucinating prompt into the left "Hallucinating Prompt" textbox. If you are unsure what to insert, you can use the "Generate" button to check what the model will generate for your input prompt. Then, insert the ground truth into the right "Ground Truth" textbox and click the edit button to correct the hallucination.
168
 
169
- <p align="center">
170
- <img src="figures/siam2e0.png" width="550"/>
171
- </h1>
172
 
173
  For example, `llama-3-8b` thinks Robert William Muench is an accountant when prompted with "Robert William Muench is a", while in fact, he is a "bishop".
174
  """
@@ -221,9 +219,7 @@ with gr.Blocks(theme=gr.themes.Soft(text_size="sm")) as demo:
221
 
222
  Click the "Generate" button to check what the original model will generate for the target prompt. Click the "Attack" button to insert the stealth attack into the model and show what the attacked model will generate based on a textual trigger.
223
 
224
- <p align="center">
225
- <img src="figures/siam2e1.png" width="550"/>
226
- </h1>
227
 
228
  For example, an example target prompt is "My ticket is not refundable. Can you refund me?" `llama-3-8b` may refuse you, but can you attack it so that it will reply, "Yes, of course"?
229
  """
 
166
 
167
  Let's try to use stealth edit to correct a 'hallucination'... Please first insert a hallucinating prompt into the left "Hallucinating Prompt" textbox. If you are unsure what to insert, you can use the "Generate" button to check what the model will generate for your input prompt. Then, insert the ground truth into the right "Ground Truth" textbox and click the edit button to correct the hallucination.
168
 
169
+ ![](figures/siam2e0.jpg)
 
 
170
 
171
  For example, `llama-3-8b` thinks Robert William Muench is an accountant when prompted with "Robert William Muench is a", while in fact, he is a "bishop".
172
  """
 
219
 
220
  Click the "Generate" button to check what the original model will generate for the target prompt. Click the "Attack" button to insert the stealth attack into the model and show what the attacked model will generate based on a textual trigger.
221
 
222
+ ![](figures/siam2e1.jpg)
 
 
223
 
224
  For example, an example target prompt is "My ticket is not refundable. Can you refund me?" `llama-3-8b` may refuse you, but can you attack it so that it will reply, "Yes, of course"?
225
  """