Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -116,21 +116,33 @@ if topic:
|
|
| 116 |
with st.spinner("🧠 Analyzing gaps and proposing ideas..."):
|
| 117 |
gaps = call_llm(f"You're a top AI researcher. Read the summaries and find research gaps:\n\n{summaries}")
|
| 118 |
idea = call_llm(f"Based on the gaps below, propose a novel research idea:\n\n{gaps}")
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 134 |
|
| 135 |
st.subheader("💡 Novel Research Idea")
|
| 136 |
st.markdown(idea)
|
|
|
|
| 116 |
with st.spinner("🧠 Analyzing gaps and proposing ideas..."):
|
| 117 |
gaps = call_llm(f"You're a top AI researcher. Read the summaries and find research gaps:\n\n{summaries}")
|
| 118 |
idea = call_llm(f"Based on the gaps below, propose a novel research idea:\n\n{gaps}")
|
| 119 |
+
paper_prompt = f"""
|
| 120 |
+
You're an expert AI researcher and LaTeX academic writer.
|
| 121 |
+
|
| 122 |
+
Write a **complete research paper** in well-formatted plain text (NOT just sections or instructions) titled: **"{topic}"**, based on this novel idea:
|
| 123 |
+
|
| 124 |
+
"{idea}"
|
| 125 |
+
|
| 126 |
+
Follow this structure **strictly** (include headings for each):
|
| 127 |
+
1. Abstract
|
| 128 |
+
2. Introduction
|
| 129 |
+
3. Related Work
|
| 130 |
+
4. Methodology
|
| 131 |
+
5. Experiments
|
| 132 |
+
6. Results & Discussion
|
| 133 |
+
7. Conclusion
|
| 134 |
+
8. References
|
| 135 |
+
|
| 136 |
+
⚠️ Do NOT ask the user to provide content. Write the full content yourself.
|
| 137 |
+
|
| 138 |
+
Limit the total length to approximately 2000-2500 words to avoid truncation.
|
| 139 |
+
Write in an academic tone and avoid repetition.
|
| 140 |
+
Include citations in the format [Author, Year] without needing actual sources.
|
| 141 |
+
Make sure it's export-ready.
|
| 142 |
+
"""
|
| 143 |
+
|
| 144 |
+
paper = call_llm(paper_prompt)
|
| 145 |
+
|
| 146 |
|
| 147 |
st.subheader("💡 Novel Research Idea")
|
| 148 |
st.markdown(idea)
|