Mansurbek commited on
Commit
2b84e99
·
1 Parent(s): f45b133

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -23,8 +23,9 @@ def df(arr):
23
  return d
24
 
25
  def fn(text):
26
- return df(pipeline("fill-mask", model=models[0])), df(pipeline("fill-mask", model=models[1])), df(pipeline("fill-mask", model=models[2]))
27
-
 
28
  with gr.Blocks() as demo:
29
  with gr.Row():
30
  with gr.Column():
 
23
  return d
24
 
25
  def fn(text):
26
+ arr = []
27
+ for model in models:
28
+ yield df(pipeline("fill-mask", model=model)(text))
29
  with gr.Blocks() as demo:
30
  with gr.Row():
31
  with gr.Column():