nguyennghia0902 commited on
Commit
9852755
1 Parent(s): 09ecb62

Update QuestionAnswering.py

Browse files
Files changed (1) hide show
  1. QuestionAnswering.py +7 -7
QuestionAnswering.py CHANGED
@@ -29,20 +29,20 @@ def main():
29
 
30
  col2.link_button("Explore my model", "https://huggingface.co/"+model_hf)
31
 
32
- question = st.text_area(
33
- "QUESTION: Please enter a question:",
34
- placeholder="Enter your question here",
35
- height=5,
36
- )
37
  text = st.text_area(
38
  "CONTEXT: Please enter a context:",
39
  placeholder="Enter your context here",
40
  height=200,
41
  )
42
-
 
 
 
 
43
  prediction = ""
44
 
45
- upload_file = st.file_uploader("CONTEXT: Or upload a file with some questions", type=["txt"])
46
  if upload_file is not None:
47
  question = upload_file.read().decode("utf-8")
48
 
 
29
 
30
  col2.link_button("Explore my model", "https://huggingface.co/"+model_hf)
31
 
32
+
 
 
 
 
33
  text = st.text_area(
34
  "CONTEXT: Please enter a context:",
35
  placeholder="Enter your context here",
36
  height=200,
37
  )
38
+ question = st.text_area(
39
+ "QUESTION: Please enter a question:",
40
+ placeholder="Enter your question here",
41
+ height=5,
42
+ )
43
  prediction = ""
44
 
45
+ upload_file = st.file_uploader("QUESTION: Or upload a file with some questions", type=["txt"])
46
  if upload_file is not None:
47
  question = upload_file.read().decode("utf-8")
48