victorknox commited on
Commit
75f0536
1 Parent(s): b85ffd0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -20,9 +20,9 @@ qa_pl = pipeline('question-answering', model=model_name, tokenizer=model_name, d
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)
25
- st.json(result)
26
 
27
  #for ctx, q in test_df[["context", "question"]].to_numpy():
28
 
 
20
  ctx = st.text_area('Gib context')
21
  q = st.text_area('Gib question')
22
 
23
+ if context:
24
  result = qa_pl(context=ctx, question=q)
25
+ st.json(result["answer"])
26
 
27
  #for ctx, q in test_df[["context", "question"]].to_numpy():
28