Spaces:
Runtime error
Runtime error
Commit
·
e17ad7a
1
Parent(s):
32d6ac4
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ model = AutoModelForQuestionAnswering.from_pretrained(model_name)
|
|
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)
|
|
|
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)
|