jvamvas commited on
Commit
42eceac
1 Parent(s): 57db812

Change example

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -19,7 +19,7 @@ def generate_diff(text_a: str, text_b: str, method: str):
19
 
20
  if method == "DiffAlign":
21
  diff = DiffAlign(pipeline=my_pipeline)
22
- min_value = 0.3758048415184021 - 0.37
23
  max_value = 1.045647144317627 - 0.1
24
  elif method == "DiffDel":
25
  diff = DiffDel(pipeline=my_pipeline)
@@ -64,8 +64,8 @@ with gr.Blocks() as demo:
64
  preamble = (Path(__file__).parent / "preamble.md").read_text()
65
  gr.Markdown(preamble)
66
  with gr.Row():
67
- text_a = gr.Textbox(label="Text A", value="Chinese shares close higher Friday.", lines=2)
68
- text_b = gr.Textbox(label="Text B", value="Les actions chinoises clôturent en baisse mercredi.", lines=2)
69
  with gr.Row():
70
  method = gr.Dropdown(choices=["DiffAlign", "DiffDel"], label="Comparison Method", value="DiffAlign")
71
  with gr.Row():
 
19
 
20
  if method == "DiffAlign":
21
  diff = DiffAlign(pipeline=my_pipeline)
22
+ min_value = 0.3758048415184021 - 0.1
23
  max_value = 1.045647144317627 - 0.1
24
  elif method == "DiffDel":
25
  diff = DiffDel(pipeline=my_pipeline)
 
64
  preamble = (Path(__file__).parent / "preamble.md").read_text()
65
  gr.Markdown(preamble)
66
  with gr.Row():
67
+ text_a = gr.Textbox(label="Text A", value="We'll meet Steve on Wednesday.", lines=2)
68
+ text_b = gr.Textbox(label="Text B", value="We are going to see Mary on Friday.", lines=2)
69
  with gr.Row():
70
  method = gr.Dropdown(choices=["DiffAlign", "DiffDel"], label="Comparison Method", value="DiffAlign")
71
  with gr.Row():