freemt commited on
Commit
cd374f0
·
1 Parent(s): 34c6270

Fix text1, text2, thresh

Browse files
Files changed (1) hide show
  1. ubee/__main__.py +3 -3
ubee/__main__.py CHANGED
@@ -260,13 +260,13 @@ def main():
260
  text1 = gr.Textbox(
261
  lines=lines,
262
  placeholder=placeholder,
263
- default=ex2_zh,
264
  label="text1"
265
  ),
266
  text2 = gr.Textbox(
267
  lines=lines,
268
  placeholder=placeholder,
269
- default=ex2_en,
270
  label="text2"
271
  )
272
  with gr.Row():
@@ -274,7 +274,7 @@ def main():
274
  minimum=0.0,
275
  maximum=1.0,
276
  step=0.1,
277
- default=0.4,
278
  label="threshold",
279
  )
280
  btn = gr.Button("Run")
 
260
  text1 = gr.Textbox(
261
  lines=lines,
262
  placeholder=placeholder,
263
+ value=ex2_zh,
264
  label="text1"
265
  ),
266
  text2 = gr.Textbox(
267
  lines=lines,
268
  placeholder=placeholder,
269
+ value=ex2_en,
270
  label="text2"
271
  )
272
  with gr.Row():
 
274
  minimum=0.0,
275
  maximum=1.0,
276
  step=0.1,
277
+ value=0.4,
278
  label="threshold",
279
  )
280
  btn = gr.Button("Run")