Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ st.subheader("Try")
|
|
14 |
# st.sidebar.header("What will you like to do?")
|
15 |
# option = st.sidebar.radio("", ["Text summarization", "Extractive question answering", "Text generation"])
|
16 |
|
17 |
-
@st.
|
18 |
def question_model():
|
19 |
model_name = "deepset/tinyroberta-squad2"
|
20 |
question_answerer = pipeline(model=model_name, tokenizer=model_name, task="question-answering")
|
|
|
14 |
# st.sidebar.header("What will you like to do?")
|
15 |
# option = st.sidebar.radio("", ["Text summarization", "Extractive question answering", "Text generation"])
|
16 |
|
17 |
+
@st.cache_data(show_spinner=False, allow_output_mutation=True)
|
18 |
def question_model():
|
19 |
model_name = "deepset/tinyroberta-squad2"
|
20 |
question_answerer = pipeline(model=model_name, tokenizer=model_name, task="question-answering")
|