niks-salodkar commited on
Commit
89e6908
1 Parent(s): 606291c

updated app

Browse files
Files changed (2) hide show
  1. .gitignore +1 -0
  2. app.py +0 -6
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ /__pycache__/
app.py CHANGED
@@ -20,8 +20,6 @@ with st.sidebar:
20
  ops_to_perform = st.multiselect('Select operation to perform :', ['Question Answering', 'Entity Recognition', 'Text Summarization'],
21
  default=['Question Answering'])
22
  chosen_dataset = st.selectbox("Choose one of the datasest to get samples :", ['squad-qa', 'bbc-xsum-summarization', 'conll-ner'])
23
- if 'Question Answering' in ops_to_perform or 'Text Summarization' in ops_to_perform:
24
- ground_truth_available = st.checkbox("Tick if you want to provided ground truth", value=False)
25
 
26
  samples_dict = get_default_texts(chosen_dataset)
27
  tot_index = len(samples_dict)
@@ -47,10 +45,6 @@ input_text = st.text_area("Input text to perform selected operations on : ", sam
47
  question = None
48
  if "Question Answering" in ops_to_perform:
49
  question = st.text_input("Enter a valid question here :")
50
- if ground_truth_available:
51
- correct_answer = st.text_input("Enter the correct answer :")
52
- if "Text Summarization" in ops_to_perform and ground_truth_available:
53
- correct_summary = st.text_area("Enter ground truth summary :")
54
 
55
  predict_clicked = st.button("Submit for predictions")
56
  if predict_clicked:
 
20
  ops_to_perform = st.multiselect('Select operation to perform :', ['Question Answering', 'Entity Recognition', 'Text Summarization'],
21
  default=['Question Answering'])
22
  chosen_dataset = st.selectbox("Choose one of the datasest to get samples :", ['squad-qa', 'bbc-xsum-summarization', 'conll-ner'])
 
 
23
 
24
  samples_dict = get_default_texts(chosen_dataset)
25
  tot_index = len(samples_dict)
 
45
  question = None
46
  if "Question Answering" in ops_to_perform:
47
  question = st.text_input("Enter a valid question here :")
 
 
 
 
48
 
49
  predict_clicked = st.button("Submit for predictions")
50
  if predict_clicked: