Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -218,7 +218,7 @@ words = st.number_input(ui["words_label"], min_value=12000, max_value=25000, val
|
|
| 218 |
tab_wizard, tab_clone = st.tabs(["✨ 实证研究(Empirical Research)", "🧬 范文复刻 (Template Imitate)"])
|
| 219 |
|
| 220 |
with tab_wizard:
|
| 221 |
-
st.markdown("### 🛠️
|
| 222 |
prompt_style_ui = st.radio("1. 请选择期望的写作规范与提示词引擎:", options=["实证研究 (AMJ Style)", "自适应 (Adaptive Style)"], index=0, disabled=st.session_state.is_running)
|
| 223 |
uploaded_papers_wiz = st.file_uploader("2. 上传参考论文 (可选,支持 PDF/DOCX,建议1-20篇)", type=["pdf", "doc", "docx"], accept_multiple_files=True, disabled=st.session_state.is_running)
|
| 224 |
uploaded_data_wiz = st.file_uploader("3. 上传科研数据 (可选,支持 CSV/Excel,用于防幻觉)", type=["csv", "xlsx", "xls"], disabled=st.session_state.is_running)
|
|
@@ -233,7 +233,7 @@ with tab_wizard:
|
|
| 233 |
st.rerun()
|
| 234 |
|
| 235 |
with tab_clone:
|
| 236 |
-
st.markdown("### 🧬
|
| 237 |
context_differences = st.text_area("1. 研究背景与核心差异(Context & Differences)(必填,建议 1-2000 字)", placeholder="简述您的新研究与参考论文在数据、案例或背景上的核心区别...", max_chars=2000, disabled=st.session_state.is_running)
|
| 238 |
|
| 239 |
if "extracted_sections" not in st.session_state:
|
|
|
|
| 218 |
tab_wizard, tab_clone = st.tabs(["✨ 实证研究(Empirical Research)", "🧬 范文复刻 (Template Imitate)"])
|
| 219 |
|
| 220 |
with tab_wizard:
|
| 221 |
+
st.markdown("### 🛠️ 研究资料配置")
|
| 222 |
prompt_style_ui = st.radio("1. 请选择期望的写作规范与提示词引擎:", options=["实证研究 (AMJ Style)", "自适应 (Adaptive Style)"], index=0, disabled=st.session_state.is_running)
|
| 223 |
uploaded_papers_wiz = st.file_uploader("2. 上传参考论文 (可选,支持 PDF/DOCX,建议1-20篇)", type=["pdf", "doc", "docx"], accept_multiple_files=True, disabled=st.session_state.is_running)
|
| 224 |
uploaded_data_wiz = st.file_uploader("3. 上传科研数据 (可选,支持 CSV/Excel,用于防幻觉)", type=["csv", "xlsx", "xls"], disabled=st.session_state.is_running)
|
|
|
|
| 233 |
st.rerun()
|
| 234 |
|
| 235 |
with tab_clone:
|
| 236 |
+
st.markdown("### 🧬 框架与风格复刻")
|
| 237 |
context_differences = st.text_area("1. 研究背景与核心差异(Context & Differences)(必填,建议 1-2000 字)", placeholder="简述您的新研究与参考论文在数据、案例或背景上的核心区别...", max_chars=2000, disabled=st.session_state.is_running)
|
| 238 |
|
| 239 |
if "extracted_sections" not in st.session_state:
|