ashischakraborty commited on
Commit
91c2853
·
verified ·
1 Parent(s): 4c318b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -108,7 +108,7 @@ def main():
108
  with st.spinner("Processing Internal Reg Intel"):
109
  int_intl_text_insight, int_intl_page_texts_insight = extract_text_from_pdf(uploaded_interintel_file_insight)
110
  token_count_insight, _ = count_tokens_with_tiktoken(int_intl_text_insight)
111
- st.sidebar.success("External Reg Intel file successfully processed")
112
  st.write("Token Count")
113
  st.write(f"The PDF contains **{token_count_insight}** tokens.")
114
 
@@ -133,8 +133,8 @@ def main():
133
  with st.spinner("Processing the Insight Document..."):
134
  df_ii_input_insight = pd.DataFrame([{ "Title": uploaded_interintel_file_insight.name, "Text": int_intl_text_insight, "PageTexts": int_intl_page_texts_insight }])
135
  df_ii_insight_chunks = split_dataframe_with_combined_text_and_pages(df_ii_input_insight, 10000, 1000)
136
- st.write("Processed External Reg Intel")
137
- st.sidebar.success("Processed External Reg Intel")
138
  st.write(df_ii_insight_chunks)
139
 
140
 
@@ -155,7 +155,7 @@ def main():
155
  ii_score["source"]="internal intel"
156
  df_ii_eval["source"]="internal intel"
157
  score = pd.concat([ei_score, ii_score])
158
- st.write("External Inteligence Evaluation")
159
  st.sidebar.success(f"Evaluation Concensus: {ei_con}")
160
  st.write(f"Evaluation Concensus: {ei_con}")
161
  st.write("Evaluation Scores:")
@@ -173,8 +173,8 @@ def main():
173
  df_ei_insights["source"]="external intel"
174
  df_ii_insights["source"]="internal intel"
175
  df_insights = pd.concat([df_ei_insights, df_ii_insights])
176
- st.subheader("External Inteligence Insights")
177
- st.sidebar.success("External Inteligence Insights Created")
178
 
179
  st.write(df_insights)
180
  filtered_insights_on_impact = df_insights[df_insights['classification'] == 'impact']
 
108
  with st.spinner("Processing Internal Reg Intel"):
109
  int_intl_text_insight, int_intl_page_texts_insight = extract_text_from_pdf(uploaded_interintel_file_insight)
110
  token_count_insight, _ = count_tokens_with_tiktoken(int_intl_text_insight)
111
+ st.sidebar.success("Internal Reg Intel file successfully processed")
112
  st.write("Token Count")
113
  st.write(f"The PDF contains **{token_count_insight}** tokens.")
114
 
 
133
  with st.spinner("Processing the Insight Document..."):
134
  df_ii_input_insight = pd.DataFrame([{ "Title": uploaded_interintel_file_insight.name, "Text": int_intl_text_insight, "PageTexts": int_intl_page_texts_insight }])
135
  df_ii_insight_chunks = split_dataframe_with_combined_text_and_pages(df_ii_input_insight, 10000, 1000)
136
+ st.write("Processed Internal Reg Intel")
137
+ st.sidebar.success("Processed Internal Reg Intel")
138
  st.write(df_ii_insight_chunks)
139
 
140
 
 
155
  ii_score["source"]="internal intel"
156
  df_ii_eval["source"]="internal intel"
157
  score = pd.concat([ei_score, ii_score])
158
+ st.write("External & Internal Inteligence Evaluation")
159
  st.sidebar.success(f"Evaluation Concensus: {ei_con}")
160
  st.write(f"Evaluation Concensus: {ei_con}")
161
  st.write("Evaluation Scores:")
 
173
  df_ei_insights["source"]="external intel"
174
  df_ii_insights["source"]="internal intel"
175
  df_insights = pd.concat([df_ei_insights, df_ii_insights])
176
+ st.subheader("External & Internal Inteligence Insights")
177
+ st.sidebar.success("External & Internal Inteligence Insights Created")
178
 
179
  st.write(df_insights)
180
  filtered_insights_on_impact = df_insights[df_insights['classification'] == 'impact']