Spaces:
Runtime error
Runtime error
Commit
·
32d6ac4
1
Parent(s):
18e2cfb
Update app.py
Browse files
app.py
CHANGED
@@ -8,9 +8,9 @@ model = AutoModelForQuestionAnswering.from_pretrained(model_name)
|
|
8 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
9 |
|
10 |
# a) Get predictions
|
11 |
-
ctx = st.text_area('
|
12 |
if ctx:
|
13 |
-
q = st.text_area('
|
14 |
nlp = pipeline('question-answering', model=model_name, tokenizer=model_name)
|
15 |
#QA_input = {
|
16 |
# 'question': 'Why is model conversion important?',
|
|
|
8 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
9 |
|
10 |
# a) Get predictions
|
11 |
+
ctx = st.text_area('Context:')
|
12 |
if ctx:
|
13 |
+
q = st.text_area('Ask your question :)')
|
14 |
nlp = pipeline('question-answering', model=model_name, tokenizer=model_name)
|
15 |
#QA_input = {
|
16 |
# 'question': 'Why is model conversion important?',
|