Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,11 @@
|
|
|
|
1 |
import streamlit as st
|
2 |
|
3 |
from transformers import pipeline
|
4 |
|
5 |
@st.cache(allow_output_mutation=True)
|
6 |
def get_model(model):
|
7 |
-
return pipeline("fill-mask", model=model)
|
8 |
|
9 |
|
10 |
|
|
|
1 |
+
|
2 |
import streamlit as st
|
3 |
|
4 |
from transformers import pipeline
|
5 |
|
6 |
@st.cache(allow_output_mutation=True)
|
7 |
def get_model(model):
|
8 |
+
return pipeline("fill-mask", model=model, top_k=100)
|
9 |
|
10 |
|
11 |
|