Diezu commited on
Commit
8ea121e
·
verified ·
1 Parent(s): 2e5ef54

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from transformers import pipeline
3
+
4
+ question_answerer = pipeline("question-answering")
5
+ text= st.text_area('enter your context')
6
+ ques = st.text_input('enter your question')
7
+
8
+ if st.button('ANSWER'):
9
+ out=question_answerer(ques,text)
10
+