ZongqianLi commited on
Commit
aff682b
·
verified ·
1 Parent(s): f114c57

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -34,15 +34,12 @@ if fpretrain == "None":
34
  else:
35
  model = "".join(["ZongqianLi/bert", size, cased, fpretrain, finetune])
36
 
37
- # 显示用户当前选择的模型
38
- st.write(f"You selected: {model}")
39
 
40
- pipe = pipeline("question-answering", model="ZongqianLi/bert-base-cased-scqa2")
41
 
42
- st.write("Here's our first attempt at using data to create a table:")
43
-
44
- context = st.text_input("Enter the context here")
45
- question = st.text_area("Enter your question here")
46
 
47
  if context and question:
48
  out = pipe({
 
34
  else:
35
  model = "".join(["ZongqianLi/bert", size, cased, fpretrain, finetune])
36
 
37
+ st.write(f"Your selected model: {model}")
 
38
 
39
+ pipe = pipeline("question-answering", model=model)
40
 
41
+ question = st.text_input("Enter your question here")
42
+ context = st.text_area("Enter the context here")
 
 
43
 
44
  if context and question:
45
  out = pipe({