freemt commited on
Commit
1ccfc22
·
1 Parent(s): c978e0b

Update sents/words examples

Browse files
Files changed (1) hide show
  1. ubee/__main__.py +13 -10
ubee/__main__.py CHANGED
@@ -123,7 +123,7 @@ def main():
123
  ]
124
  shuffle(ex1_en)
125
 
126
- ex2_zh =
127
  ex2_en = "She looked at me leaning back in her chair and remained motionless and mute".split()
128
  shuffle(ex2_en)
129
 
@@ -133,20 +133,14 @@ def main():
133
  ]
134
  lines = 15
135
  placeholder = "Type or paste text here"
136
- label1 = "text1"
137
- label2 = "text2"
138
  inputs = [
139
  gr.inputs.Textbox(
140
- lines=lines, placeholder=placeholder, default=ex1_zh, label=label1
141
  ),
142
  gr.inputs.Textbox(
143
- lines=lines, placeholder=placeholder, default=ex1_en, label=label2
144
  ),
145
- gr.inputs.Radio(
146
- ["para", "sent", "word"],
147
- default="para",
148
- label="segment"
149
- )
150
  gr.inputs.Slider(
151
  minimum=0.0,
152
  maximum=1.0,
@@ -209,3 +203,12 @@ def main():
209
 
210
  if __name__ == "__main__":
211
  main()
 
 
 
 
 
 
 
 
 
 
123
  ]
124
  shuffle(ex1_en)
125
 
126
+ ex2_zh = "她\n望望\n我\n往\n她\n的\n椅背\n一靠\n不\n动\n也\n不\n出声"
127
  ex2_en = "She looked at me leaning back in her chair and remained motionless and mute".split()
128
  shuffle(ex2_en)
129
 
 
133
  ]
134
  lines = 15
135
  placeholder = "Type or paste text here"
136
+
 
137
  inputs = [
138
  gr.inputs.Textbox(
139
+ lines=lines, placeholder=placeholder, default=ex1_zh, label="text1"
140
  ),
141
  gr.inputs.Textbox(
142
+ lines=lines, placeholder=placeholder, default=ex1_en, label="text2"
143
  ),
 
 
 
 
 
144
  gr.inputs.Slider(
145
  minimum=0.0,
146
  maximum=1.0,
 
203
 
204
  if __name__ == "__main__":
205
  main()
206
+
207
+ _ = """
208
+
209
+ gr.inputs.Radio(
210
+ ["para", "sent", "word"],
211
+ default="para",
212
+ label="segment"
213
+ )
214
+ # """