Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,10 +23,10 @@ def df(arr):
|
|
| 23 |
return d
|
| 24 |
|
| 25 |
def fn(text):
|
| 26 |
-
arr =
|
| 27 |
for model in models:
|
| 28 |
-
arr
|
| 29 |
-
return arr
|
| 30 |
with gr.Blocks() as demo:
|
| 31 |
with gr.Row():
|
| 32 |
with gr.Column():
|
|
|
|
| 23 |
return d
|
| 24 |
|
| 25 |
def fn(text):
|
| 26 |
+
arr = []
|
| 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():
|