Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,7 @@
|
|
5 |
|
6 |
错误信息:
|
7 |
1. 如果上传的单个文件中的内容超过大模型的上下文,可能会报错。需要确认文件内容,或者需要更换长文大模型。
|
|
|
8 |
|
9 |
"""
|
10 |
|
@@ -66,7 +67,8 @@ dashscope.api_key = os.environ['dashscope_api_key']
|
|
66 |
|
67 |
### Streamlit页面设定。
|
68 |
st.set_page_config(layout="wide", page_icon="🌀", page_title="人工智能大模型的智能信息探索平台")
|
69 |
-
st.title("EF
|
|
|
70 |
# st.subheader("Large Language Model-based Knowledge Base QA System")
|
71 |
# st.warning("_声明:内容由人工智能生成,仅供参考。如果您本人使用或对外传播本服务生成的输出,您应当主动核查输出内容的真实性、准确性,避免传播虚假信息。_")
|
72 |
# st.info("_声明:内容由人工智能生成,仅供参考。如果您本人使用或对外传播本服务生成的输出,您应当主动核查输出内容的真实性、准确性,避免传播虚假信息。_")
|
@@ -335,20 +337,17 @@ st.divider()
|
|
335 |
with st.expander(label='**标准模块**', expanded=True):
|
336 |
col_1, col_2, col_3, col_4 = st.columns(4)
|
337 |
with col_1:
|
338 |
-
prompt_input = st.text_area(label='**原始文件的说明**', value="""
|
339 |
-
|
340 |
-
2. “output”是法律顾问的回答内容。""", height=200, label_visibility='visible')
|
341 |
with col_2:
|
342 |
prompt_caution = st.text_area(label='**注意事项**', value='忽略所有语法错误和错别字。',height=200, label_visibility='visible')
|
343 |
with col_3:
|
344 |
prompt_rule = st.text_area(label='**规则定义**', value='无特定规则要求。',height=200, label_visibility='visible')
|
345 |
with col_4:
|
346 |
prompt_output = st.text_area(label='**输出结果的要求**', value=
|
347 |
-
"""
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
""", height=200, label_visibility='visible')
|
352 |
|
353 |
# st.write(f"{prompt_explain} {prompt_notice} {prompt_rule} {prompt_ouput}")
|
354 |
|
|
|
5 |
|
6 |
错误信息:
|
7 |
1. 如果上传的单个文件中的内容超过大模型的上下文,可能会报错。需要确认文件内容,或者需要更换长文大模型。
|
8 |
+
1. 纯txt文件中可能会因为Encoding(utf-8)的问题而导致部分失败,PDF和JSON文件可以基本保证成功。
|
9 |
|
10 |
"""
|
11 |
|
|
|
67 |
|
68 |
### Streamlit页面设定。
|
69 |
st.set_page_config(layout="wide", page_icon="🌀", page_title="人工智能大模型的智能信息探索平台")
|
70 |
+
st.title("EF教育人工智能大模型文本清洗与挖掘平台")
|
71 |
+
# st.title("人工智能大模型文本清洗与挖掘平台(可内网部署)")
|
72 |
# st.subheader("Large Language Model-based Knowledge Base QA System")
|
73 |
# st.warning("_声明:内容由人工智能生成,仅供参考。如果您本人使用或对外传播本服务生成的输出,您应当主动核查输出内容的真实性、准确性,避免传播虚假信息。_")
|
74 |
# st.info("_声明:内容由人工智能生成,仅供参考。如果您本人使用或对外传播本服务生成的输出,您应当主动核查输出内容的真实性、准确性,避免传播虚假信息。_")
|
|
|
337 |
with st.expander(label='**标准模块**', expanded=True):
|
338 |
col_1, col_2, col_3, col_4 = st.columns(4)
|
339 |
with col_1:
|
340 |
+
prompt_input = st.text_area(label='**原始文件的说明**', value="""内容是一通完整的邀约中心电话记录。其中说话人2是公司邀约专员,说话人1是客户。""", height=200, label_visibility='visible')
|
|
|
|
|
341 |
with col_2:
|
342 |
prompt_caution = st.text_area(label='**注意事项**', value='忽略所有语法错误和错别字。',height=200, label_visibility='visible')
|
343 |
with col_3:
|
344 |
prompt_rule = st.text_area(label='**规则定义**', value='无特定规则要求。',height=200, label_visibility='visible')
|
345 |
with col_4:
|
346 |
prompt_output = st.text_area(label='**输出结果的要求**', value=
|
347 |
+
"""【邀约的整体情况】用一句话来简单概述判断这一通话的整体情况。
|
348 |
+
【客户的关注点】 客户关注点是哪些?
|
349 |
+
【是否邀约成功】判断邀约是否成功,即客户是否愿意来参加活动。
|
350 |
+
""", height=200, label_visibility='visible')
|
|
|
351 |
|
352 |
# st.write(f"{prompt_explain} {prompt_notice} {prompt_rule} {prompt_ouput}")
|
353 |
|