dhuynh95 commited on
Commit
30962e5
1 Parent(s): cc06a7b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -406,8 +406,13 @@ with gr.Blocks(theme=style) as demo:
406
  info="""You can choose among high/low memorization examples from The Stack.
407
  More samples are available below.""")
408
  with gr.Column():
 
409
  diff_HTML = gr.HTML(
410
  label="Diff")
 
 
 
 
411
 
412
  with gr.Row():
413
  with gr.Column():
 
406
  info="""You can choose among high/low memorization examples from The Stack.
407
  More samples are available below.""")
408
  with gr.Column():
409
+ gr.Markdown("### Difference between completion and original sample:")
410
  diff_HTML = gr.HTML(
411
  label="Diff")
412
+ with gr.Accordion("What does this represent?", open=False):
413
+ gr.Markdown("""This is a GitHub-like difference displayer.
414
+ Red and green lines are shown where there is a difference. Note that even a single space will cause to show difference, though it is minor.
415
+ Green corresponds to the original training sample, red corresponds to the completion from the LLM.""")
416
 
417
  with gr.Row():
418
  with gr.Column():