Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -79,13 +79,13 @@ if uploaded_files:
|
|
79 |
|
80 |
st.success("Files uploaded and processed successfully!")
|
81 |
|
82 |
-
# Button to view topic summaries with an
|
83 |
-
if st.button("View Topic Summaries", help="Click to view a brief summary of the uploaded papers", icon="
|
84 |
for chunk in all_chunks[:3]:
|
85 |
st.write(chunk)
|
86 |
|
87 |
-
# User input for query with a magnifying glass
|
88 |
-
user_question = st.text_input("Ask a question about the uploaded papers:", help="Ask about specific research details", icon="
|
89 |
|
90 |
if user_question:
|
91 |
relevant_chunks = retrieve_relevant_chunks(user_question)
|
@@ -95,21 +95,21 @@ if uploaded_files:
|
|
95 |
st.write("**Answer:**", answer)
|
96 |
|
97 |
# Implement Research Gap Identification based on inconsistencies between papers
|
98 |
-
st.subheader("Research Gap Analysis:", icon="
|
99 |
research_gap = ask_groq_api("Identify research gaps and unanswered questions based on the following context:", context)
|
100 |
st.write(f"**Research Gaps Identified:** {research_gap}")
|
101 |
else:
|
102 |
st.write("No relevant sections found for your question.")
|
103 |
|
104 |
-
# Adding an
|
105 |
-
if st.button("Identify Research Gaps", help="Find unanswered questions or areas where research is lacking", icon="
|
106 |
st.write("**Research Gap Analysis:**")
|
107 |
# Here you would analyze the content and highlight gaps
|
108 |
research_gap_analysis = "Based on the analysis of the uploaded papers, several research gaps have been identified, including inconsistent findings in the areas of X, Y, and Z. Further research is needed to clarify these discrepancies."
|
109 |
st.write(research_gap_analysis)
|
110 |
|
111 |
-
# Button to generate scatter plot with a chart
|
112 |
-
if st.button("Generate Scatter Plot", icon="
|
113 |
st.write("Generating scatter plot for methods vs. results...")
|
114 |
# Example scatter plot (replace with real data)
|
115 |
x = np.random.rand(10)
|
@@ -119,5 +119,5 @@ if uploaded_files:
|
|
119 |
plt.ylabel("Results")
|
120 |
st.pyplot(plt)
|
121 |
|
122 |
-
# Text area for annotations with a pencil
|
123 |
-
st.text_area("Annotate Your Insights:", height=100, key="annotations", help="Add your thoughts or comments here", icon="
|
|
|
79 |
|
80 |
st.success("Files uploaded and processed successfully!")
|
81 |
|
82 |
+
# Button to view topic summaries with an emoji
|
83 |
+
if st.button("View Topic Summaries", help="Click to view a brief summary of the uploaded papers", icon="π"):
|
84 |
for chunk in all_chunks[:3]:
|
85 |
st.write(chunk)
|
86 |
|
87 |
+
# User input for query with a magnifying glass emoji
|
88 |
+
user_question = st.text_input("Ask a question about the uploaded papers:", help="Ask about specific research details", icon="π")
|
89 |
|
90 |
if user_question:
|
91 |
relevant_chunks = retrieve_relevant_chunks(user_question)
|
|
|
95 |
st.write("**Answer:**", answer)
|
96 |
|
97 |
# Implement Research Gap Identification based on inconsistencies between papers
|
98 |
+
st.subheader("Research Gap Analysis:", icon="β οΈ")
|
99 |
research_gap = ask_groq_api("Identify research gaps and unanswered questions based on the following context:", context)
|
100 |
st.write(f"**Research Gaps Identified:** {research_gap}")
|
101 |
else:
|
102 |
st.write("No relevant sections found for your question.")
|
103 |
|
104 |
+
# Adding an emoji for research gap feature
|
105 |
+
if st.button("Identify Research Gaps", help="Find unanswered questions or areas where research is lacking", icon="β οΈ"):
|
106 |
st.write("**Research Gap Analysis:**")
|
107 |
# Here you would analyze the content and highlight gaps
|
108 |
research_gap_analysis = "Based on the analysis of the uploaded papers, several research gaps have been identified, including inconsistent findings in the areas of X, Y, and Z. Further research is needed to clarify these discrepancies."
|
109 |
st.write(research_gap_analysis)
|
110 |
|
111 |
+
# Button to generate scatter plot with a chart emoji
|
112 |
+
if st.button("Generate Scatter Plot", icon="π"):
|
113 |
st.write("Generating scatter plot for methods vs. results...")
|
114 |
# Example scatter plot (replace with real data)
|
115 |
x = np.random.rand(10)
|
|
|
119 |
plt.ylabel("Results")
|
120 |
st.pyplot(plt)
|
121 |
|
122 |
+
# Text area for annotations with a pencil emoji
|
123 |
+
st.text_area("Annotate Your Insights:", height=100, key="annotations", help="Add your thoughts or comments here", icon="βοΈ")
|