shaina commited on
Commit
5cd49a7
1 Parent(s): c00abe6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -25,7 +25,7 @@ def qna():
25
 
26
  @st.cache(allow_output_mutation=True)
27
  def answergen(context, question):
28
- """DistilBert"""
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 (CO-QA) system")
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-covid__qa__distillbert-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)
 
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)