Krish Patel commited on
Commit
98e05ff
Β·
1 Parent(s): f813eb3

Changed order again

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -196,6 +196,11 @@ def main():
196
  # Single expander for all analysis details
197
  with st.expander("Click here to get Detailed Analysis"):
198
  try:
 
 
 
 
 
199
  # Named Entities from spaCy
200
  st.subheader("🏷️ Named Entities")
201
  entities = extract_entities(news_text, nlp)
@@ -207,11 +212,6 @@ def main():
207
  fig = generate_knowledge_graph_viz(news_text, nlp, tokenizer, model)
208
  st.plotly_chart(fig, use_container_width=True)
209
 
210
- # Analysis Reasoning
211
- st.subheader("πŸ’­ Analysis Reasoning")
212
- for point in gemini_result.get('gemini_analysis', {}).get('reasoning', ['N/A']):
213
- st.write(f"β€’ {point}")
214
-
215
  # Text Classification
216
  st.subheader("πŸ“ Text Classification")
217
  text_class = gemini_result.get('text_classification', {})
 
196
  # Single expander for all analysis details
197
  with st.expander("Click here to get Detailed Analysis"):
198
  try:
199
+ # Analysis Reasoning
200
+ st.subheader("πŸ’­ Analysis Reasoning")
201
+ for point in gemini_result.get('gemini_analysis', {}).get('reasoning', ['N/A']):
202
+ st.write(f"β€’ {point}")
203
+
204
  # Named Entities from spaCy
205
  st.subheader("🏷️ Named Entities")
206
  entities = extract_entities(news_text, nlp)
 
212
  fig = generate_knowledge_graph_viz(news_text, nlp, tokenizer, model)
213
  st.plotly_chart(fig, use_container_width=True)
214
 
 
 
 
 
 
215
  # Text Classification
216
  st.subheader("πŸ“ Text Classification")
217
  text_class = gemini_result.get('text_classification', {})