Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,14 @@
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline
|
3 |
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
|
8 |
-
|
9 |
-
|
10 |
-
|
|
|
|
|
|
|
|
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline
|
3 |
|
4 |
+
st.title('QA ')
|
5 |
+
model_checkpoint = 'Diezu/dieumrc'
|
6 |
+
question_answerer = pipeline("question-answering", model=model_checkpoint)
|
7 |
|
8 |
+
context = st.text_area('CONTEXT')
|
9 |
+
question = st.text_input('QUESTION')
|
10 |
+
|
11 |
+
st.title('Predict Flight Price ')
|
12 |
+
|
13 |
+
if st.button('ANSWER'):
|
14 |
+
print(question_answerer(question,context))
|