Spaces:
Runtime error
Runtime error
Commit
·
5fc0c2a
1
Parent(s):
f15b059
Update app.py
Browse files
app.py
CHANGED
@@ -17,8 +17,8 @@ qa_pl = pipeline('question-answering', model=model_name, tokenizer=model_name, d
|
|
17 |
#predictions = []
|
18 |
|
19 |
# batches might be faster
|
20 |
-
|
21 |
-
|
22 |
|
23 |
if context and question:
|
24 |
result = qa_pl(context=ctx, question=q)
|
|
|
17 |
#predictions = []
|
18 |
|
19 |
# batches might be faster
|
20 |
+
ctx = st.text_area('Gib context')
|
21 |
+
q = st.text_area('Gib question')
|
22 |
|
23 |
if context and question:
|
24 |
result = qa_pl(context=ctx, question=q)
|