DrishtiSharma commited on
Commit
8815891
Β·
verified Β·
1 Parent(s): a9ca168

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -438,6 +438,7 @@ def escape_markdown(text):
438
  return re.sub(escape_chars, r"\\\1", text)
439
 
440
 
 
441
  def generate_report(query, crew_report, result_container, progress_bar, step):
442
  progress_bar.progress(step, text="πŸ“ Generating Analysis Report...")
443
  report_inputs = {"query": query + " Provide detailed analysis but DO NOT include Conclusion."}
@@ -455,6 +456,7 @@ def generate_visuals(query, df, llm, result_container, progress_bar, step):
455
  result_container['visuals'] = ask_gpt4o_for_visualization(query, df, llm)
456
  progress_bar.progress(step + 1, text="βœ… Visualizations Ready!")
457
 
 
458
  # SQL-RAG Analysis
459
  if st.session_state.df is not None:
460
  temp_dir = tempfile.TemporaryDirectory()
 
438
  return re.sub(escape_chars, r"\\\1", text)
439
 
440
 
441
+ # Functions with Progress Bar Updates
442
  def generate_report(query, crew_report, result_container, progress_bar, step):
443
  progress_bar.progress(step, text="πŸ“ Generating Analysis Report...")
444
  report_inputs = {"query": query + " Provide detailed analysis but DO NOT include Conclusion."}
 
456
  result_container['visuals'] = ask_gpt4o_for_visualization(query, df, llm)
457
  progress_bar.progress(step + 1, text="βœ… Visualizations Ready!")
458
 
459
+
460
  # SQL-RAG Analysis
461
  if st.session_state.df is not None:
462
  temp_dir = tempfile.TemporaryDirectory()