hamzaherry commited on
Commit
8b1eefc
Β·
verified Β·
1 Parent(s): 42eb736

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
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 icon
83
- if st.button("View Topic Summaries", help="Click to view a brief summary of the uploaded papers", icon="book"):
84
  for chunk in all_chunks[:3]:
85
  st.write(chunk)
86
 
87
- # User input for query with a magnifying glass icon
88
- user_question = st.text_input("Ask a question about the uploaded papers:", help="Ask about specific research details", icon="search")
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="exclamation")
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 icon for research gap feature
105
- if st.button("Identify Research Gaps", help="Find unanswered questions or areas where research is lacking", icon="exclamation-triangle"):
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 icon
112
- if st.button("Generate Scatter Plot", icon="chart-bar"):
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 icon
123
- st.text_area("Annotate Your Insights:", height=100, key="annotations", help="Add your thoughts or comments here", icon="pencil-alt")
 
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="✏️")