Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def qna():
|
|
25 |
|
26 |
@st.cache(allow_output_mutation=True)
|
27 |
def answergen(context, question):
|
28 |
-
"""
|
29 |
tokenizer = DistilBertTokenizer.from_pretrained(model_path,return_token_type_ids = True)
|
30 |
model = DistilBertForQuestionAnswering.from_pretrained(model_path, return_dict=False)
|
31 |
encoding = tokenizer.encode_plus(question, context)
|
@@ -47,7 +47,7 @@ def news():
|
|
47 |
|
48 |
#%%
|
49 |
def main():
|
50 |
-
st.sidebar.header("COVID-19 Question Answering (
|
51 |
|
52 |
wallpaper = Image.open('covid-removebg-preview.png')
|
53 |
wallpaper = wallpaper.resize((1400,700))
|
@@ -61,7 +61,7 @@ def main():
|
|
61 |
st.markdown("<div align='center'><br>"
|
62 |
"<img src='https://img.shields.io/badge/Domain-Medical-blue'"
|
63 |
"alt='API stability' height='25'/>"
|
64 |
-
"<img src='https://img.shields.io/badge/Model-
|
65 |
"alt='API stability' height='25'/>"
|
66 |
"<img src='https://img.shields.io/badge/Web%20App-Streamlit-yellow'"
|
67 |
"alt='API stability' height='25'/></div>", unsafe_allow_html=True)
|
|
|
25 |
|
26 |
@st.cache(allow_output_mutation=True)
|
27 |
def answergen(context, question):
|
28 |
+
"""CoQUAD"""
|
29 |
tokenizer = DistilBertTokenizer.from_pretrained(model_path,return_token_type_ids = True)
|
30 |
model = DistilBertForQuestionAnswering.from_pretrained(model_path, return_dict=False)
|
31 |
encoding = tokenizer.encode_plus(question, context)
|
|
|
47 |
|
48 |
#%%
|
49 |
def main():
|
50 |
+
st.sidebar.header("COVID-19 Question Answering Dataset(CoQUAD)system")
|
51 |
|
52 |
wallpaper = Image.open('covid-removebg-preview.png')
|
53 |
wallpaper = wallpaper.resize((1400,700))
|
|
|
61 |
st.markdown("<div align='center'><br>"
|
62 |
"<img src='https://img.shields.io/badge/Domain-Medical-blue'"
|
63 |
"alt='API stability' height='25'/>"
|
64 |
+
"<img src='https://img.shields.io/badge/Model-CoQUAD-red'"
|
65 |
"alt='API stability' height='25'/>"
|
66 |
"<img src='https://img.shields.io/badge/Web%20App-Streamlit-yellow'"
|
67 |
"alt='API stability' height='25'/></div>", unsafe_allow_html=True)
|