Ani14 commited on
Commit
6f01198
·
verified ·
1 Parent(s): 111e016

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +27 -15
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
- paper = call_llm(f"""Write a detailed academic paper titled: "{topic}".
120
- Incorporate the following novel idea:
121
- {idea}
122
-
123
- Structure:
124
- - Abstract
125
- - Introduction
126
- - Related Work
127
- - Methodology
128
- - Experiments
129
- - Results & Discussion
130
- - Conclusion
131
- - References
132
-
133
- Write clearly in LaTeX-ready format.""")
 
 
 
 
 
 
 
 
 
 
 
 
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)