Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,29 @@
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline
|
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
##########
|
5 |
# Property Extraction
|
6 |
##########
|
7 |
-
st.markdown('
|
8 |
|
9 |
-
st.markdown('
|
10 |
|
11 |
# 定义模型配置选项
|
12 |
size_lst = ["-base", "-large"]
|
@@ -32,7 +49,7 @@ st.write(f"Your selected model: {model}")
|
|
32 |
# 加载问答模型
|
33 |
pipe = pipeline("question-answering", model=model)
|
34 |
|
35 |
-
st.markdown('
|
36 |
|
37 |
# 设置默认的问题和上下文
|
38 |
default_property = "FF"
|
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline
|
3 |
|
4 |
+
import streamlit as st
|
5 |
+
from st_chat_message import message
|
6 |
+
|
7 |
+
message("Hello world!", is_user=True)
|
8 |
+
message("Hi")
|
9 |
+
|
10 |
+
st.markdown("# Auto-generating Question-Answering Datasets with Domain-Specific Knowledge for Language Models in Scientific Tasks", unsafe_allow_html=True)
|
11 |
+
|
12 |
+
##########
|
13 |
+
# Transformation Algorithm
|
14 |
+
##########
|
15 |
+
st.markdown('## QA Dataset Auto Generation', unsafe_allow_html=True)
|
16 |
+
|
17 |
+
|
18 |
+
|
19 |
+
|
20 |
+
|
21 |
##########
|
22 |
# Property Extraction
|
23 |
##########
|
24 |
+
st.markdown('## Property Extraction', unsafe_allow_html=True)
|
25 |
|
26 |
+
st.markdown('### Select a model: ', unsafe_allow_html=True)
|
27 |
|
28 |
# 定义模型配置选项
|
29 |
size_lst = ["-base", "-large"]
|
|
|
49 |
# 加载问答模型
|
50 |
pipe = pipeline("question-answering", model=model)
|
51 |
|
52 |
+
st.markdown('### Input a paper: ', unsafe_allow_html=True)
|
53 |
|
54 |
# 设置默认的问题和上下文
|
55 |
default_property = "FF"
|