Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
41 |
|
42 |
-
st.
|
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({
|