Spaces:
Runtime error
Runtime error
fix typo in app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ qa_pipe = pipeline('question-answering')
|
|
5 |
context = st.text_area('provide context')
|
6 |
question = st.text_area('ask your question')
|
7 |
|
8 |
-
if
|
9 |
out = qa_pipe(dict(
|
10 |
question=question,
|
11 |
context=context
|
|
|
5 |
context = st.text_area('provide context')
|
6 |
question = st.text_area('ask your question')
|
7 |
|
8 |
+
if question and context:
|
9 |
out = qa_pipe(dict(
|
10 |
question=question,
|
11 |
context=context
|