Spaces:
Runtime error
Runtime error
Commit
•
4eee87a
1
Parent(s):
49bf64e
Update app.py
Browse files
app.py
CHANGED
@@ -10,9 +10,10 @@ tokenizer = AutoTokenizer.from_pretrained(model_name)
|
|
10 |
|
11 |
# a) Get predictions
|
12 |
ctx = st.text_area('Gib context')
|
13 |
-
|
|
|
14 |
|
15 |
-
if q
|
16 |
nlp = pipeline('question-answering', model=model_name, tokenizer=model_name)
|
17 |
#QA_input = {
|
18 |
# 'question': 'Why is model conversion important?',
|
|
|
10 |
|
11 |
# a) Get predictions
|
12 |
ctx = st.text_area('Gib context')
|
13 |
+
if ctx:
|
14 |
+
q = st.text_area('Gib question')
|
15 |
|
16 |
+
if q:
|
17 |
nlp = pipeline('question-answering', model=model_name, tokenizer=model_name)
|
18 |
#QA_input = {
|
19 |
# 'question': 'Why is model conversion important?',
|