Spaces:
Runtime error
Runtime error
shripadbhat
commited on
Commit
•
5e8df6f
1
Parent(s):
9842783
Update app.py
Browse files
app.py
CHANGED
@@ -44,6 +44,7 @@ def fetch_answers(question, document ):
|
|
44 |
|
45 |
return top_5_query_paragraph_answer_list
|
46 |
|
|
|
47 |
st.text("Loading the models...")
|
48 |
my_bar = st.progress(0)
|
49 |
model_name = "MaRiOrOsSi/t5-base-finetuned-question-answering"
|
@@ -58,7 +59,6 @@ qa_model = pipeline("question-answering",'a-ware/bart-squadv2')
|
|
58 |
my_bar.progress(100)
|
59 |
st.text('Models Loaded')
|
60 |
|
61 |
-
st.title('Document Question Answering System')
|
62 |
query = st.text_area("Query", "", height=25)
|
63 |
document = st.text_area("Document Text", "", height=100)
|
64 |
|
|
|
44 |
|
45 |
return top_5_query_paragraph_answer_list
|
46 |
|
47 |
+
st.title('Document Question Answering System')
|
48 |
st.text("Loading the models...")
|
49 |
my_bar = st.progress(0)
|
50 |
model_name = "MaRiOrOsSi/t5-base-finetuned-question-answering"
|
|
|
59 |
my_bar.progress(100)
|
60 |
st.text('Models Loaded')
|
61 |
|
|
|
62 |
query = st.text_area("Query", "", height=25)
|
63 |
document = st.text_area("Document Text", "", height=100)
|
64 |
|