Mansurbek commited on
Commit
59ae791
·
1 Parent(s): f632fa0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -10,13 +10,15 @@ examples = [
10
 
11
  def fn(text):
12
  uzroberta_v1 = pipeline("fill-mask", model="sinonimayzer/UzRoBERTa-v1")
13
- #roberta_1_8_v2 = pipeline("fill-mask", model="sinonimayzer/roberta-1.8-v2")
14
-
15
- return uzroberta_v1(text)
 
 
16
  demo = gr.load(
17
  "sinonimayzer/UzRoBERTa-v1",
18
  inputs=gr.Textbox(lines=5, max_lines=6, label="Input"),
19
- outputs=gr.Label(label="Output"),
20
  examples=examples,
21
  src="models",
22
  )
 
10
 
11
  def fn(text):
12
  uzroberta_v1 = pipeline("fill-mask", model="sinonimayzer/UzRoBERTa-v1")
13
+ roberta_1_8_v2 = pipeline("fill-mask", model="sinonimayzer/roberta-1.8-v2")
14
+ return [
15
+ uzroberta_v1(text),
16
+ roberta_1_8_v2(text)
17
+ ]
18
  demo = gr.load(
19
  "sinonimayzer/UzRoBERTa-v1",
20
  inputs=gr.Textbox(lines=5, max_lines=6, label="Input"),
21
+ outputs=[gr.Label(label="UzRoBERTa-v1"), gr.Label(label="roberta-1.8-v2")],
22
  examples=examples,
23
  src="models",
24
  )