Spaces:
Build error
Build error
freemt
commited on
Commit
·
34c6270
1
Parent(s):
cb6b514
Fix text1, text2, thresh
Browse files- ubee/__main__.py +6 -6
ubee/__main__.py
CHANGED
@@ -257,20 +257,20 @@ def main():
|
|
257 |
)
|
258 |
with gr.Column():
|
259 |
with gr.Row():
|
260 |
-
text1 = gr.
|
261 |
lines=lines,
|
262 |
placeholder=placeholder,
|
263 |
default=ex2_zh,
|
264 |
label="text1"
|
265 |
),
|
266 |
-
text2 = gr.
|
267 |
lines=lines,
|
268 |
placeholder=placeholder,
|
269 |
default=ex2_en,
|
270 |
label="text2"
|
271 |
)
|
272 |
with gr.Row():
|
273 |
-
thresh = gr.
|
274 |
minimum=0.0,
|
275 |
maximum=1.0,
|
276 |
step=0.1,
|
@@ -308,12 +308,12 @@ def main():
|
|
308 |
)
|
309 |
|
310 |
btn.click(
|
311 |
-
ifn,
|
312 |
-
inputs=
|
313 |
text1,
|
314 |
text2,
|
315 |
thresh,
|
316 |
-
|
317 |
outputs=[
|
318 |
out_df,
|
319 |
aligned,
|
|
|
257 |
)
|
258 |
with gr.Column():
|
259 |
with gr.Row():
|
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():
|
273 |
+
thresh = gr.Slider(
|
274 |
minimum=0.0,
|
275 |
maximum=1.0,
|
276 |
step=0.1,
|
|
|
308 |
)
|
309 |
|
310 |
btn.click(
|
311 |
+
fn=ifn,
|
312 |
+
inputs=[
|
313 |
text1,
|
314 |
text2,
|
315 |
thresh,
|
316 |
+
],
|
317 |
outputs=[
|
318 |
out_df,
|
319 |
aligned,
|