victorknox commited on
Commit
4eee87a
1 Parent(s): 49bf64e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- q = st.text_area('Gib question')
 
14
 
15
- if q and ctx:
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?',