Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -20,6 +20,7 @@ fpretrain_lst = ["None", "-scsmall", "-scmedium", "-sclarge"]
|
|
20 |
finetune_lst = ["-squad", "-scqa1", "-scqa2"]
|
21 |
|
22 |
# 为每个选项创建下拉菜单
|
|
|
23 |
size = st.selectbox("Choose a model size:", size_lst)
|
24 |
cased = st.selectbox("Whether distinguish upper and lowercase letters:", cased_lst)
|
25 |
fpretrain = st.selectbox("Further pretrained on a solar cell corpus:", fpretrain_lst)
|
@@ -33,7 +34,7 @@ else:
|
|
33 |
|
34 |
# 显示用户选择的模型
|
35 |
st.write(f"Your selected model:")
|
36 |
-
st.markdown(f'
|
37 |
|
38 |
# 加载问答模型
|
39 |
pipe = pipeline("question-answering", model=model)
|
@@ -116,6 +117,7 @@ if st.button('Extract the property'):
|
|
116 |
# Transformation Algorithm
|
117 |
##########
|
118 |
st.markdown('## 🖥️ QA Dataset Auto Generation', unsafe_allow_html=True)
|
|
|
119 |
|
120 |
cde_lst = ["./CDE_properties.jsonl"]
|
121 |
paper_lst = ["./reference_paper.json"]
|
@@ -139,6 +141,8 @@ with open(st.session_state['paper'],'r+', encoding = "utf-8") as f:
|
|
139 |
json_string = json.dumps(json_data, indent=4)
|
140 |
st.text_area("", value=json_string, height=200)
|
141 |
|
|
|
|
|
142 |
st.write("To be updated")
|
143 |
|
144 |
|
|
|
20 |
finetune_lst = ["-squad", "-scqa1", "-scqa2"]
|
21 |
|
22 |
# 为每个选项创建下拉菜单
|
23 |
+
st.markdown(f'bert', unsafe_allow_html=True)
|
24 |
size = st.selectbox("Choose a model size:", size_lst)
|
25 |
cased = st.selectbox("Whether distinguish upper and lowercase letters:", cased_lst)
|
26 |
fpretrain = st.selectbox("Further pretrained on a solar cell corpus:", fpretrain_lst)
|
|
|
34 |
|
35 |
# 显示用户选择的模型
|
36 |
st.write(f"Your selected model:")
|
37 |
+
st.markdown(f'###### {model}', unsafe_allow_html=True)
|
38 |
|
39 |
# 加载问答模型
|
40 |
pipe = pipeline("question-answering", model=model)
|
|
|
117 |
# Transformation Algorithm
|
118 |
##########
|
119 |
st.markdown('## 🖥️ QA Dataset Auto Generation', unsafe_allow_html=True)
|
120 |
+
st.markdown('### Input', unsafe_allow_html=True)
|
121 |
|
122 |
cde_lst = ["./CDE_properties.jsonl"]
|
123 |
paper_lst = ["./reference_paper.json"]
|
|
|
141 |
json_string = json.dumps(json_data, indent=4)
|
142 |
st.text_area("", value=json_string, height=200)
|
143 |
|
144 |
+
st.markdown('### Output', unsafe_allow_html=True)
|
145 |
+
|
146 |
st.write("To be updated")
|
147 |
|
148 |
|