Mansurbek commited on
Commit
4a6889b
·
1 Parent(s): 792e706

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -27,15 +27,16 @@ def fn(text):
27
  for model in models:
28
  arr.append(df(pipeline("fill-mask", model=model)(text)))
29
  return arr[0], arr[1], arr[2]
 
30
  with gr.Blocks() as demo:
31
  with gr.Row():
32
  with gr.Column():
33
  output0 = gr.Label(label=models[0], value=fn(examples([0])[0]))
34
  with gr.Column():
35
- output1 = gr.Label(label=models[1], value=fn(examples([0])[1])
36
  with gr.Row():
37
  with gr.Column():
38
- output2 = gr.Label(label=models[2], value=fn(examples([0])[2])
39
  with gr.Column():
40
  input = gr.Textbox(label="Input", value=examples[0], lines=8, max_lines=8)
41
  btn = gr.Button("Check")
 
27
  for model in models:
28
  arr.append(df(pipeline("fill-mask", model=model)(text)))
29
  return arr[0], arr[1], arr[2]
30
+
31
  with gr.Blocks() as demo:
32
  with gr.Row():
33
  with gr.Column():
34
  output0 = gr.Label(label=models[0], value=fn(examples([0])[0]))
35
  with gr.Column():
36
+ output1 = gr.Label(label=models[1], value=fn(examples([0])[1]))
37
  with gr.Row():
38
  with gr.Column():
39
+ output2 = gr.Label(label=models[2], value=fn(examples([0])[2]))
40
  with gr.Column():
41
  input = gr.Textbox(label="Input", value=examples[0], lines=8, max_lines=8)
42
  btn = gr.Button("Check")