DrishtiSharma commited on
Commit
4e6f903
·
verified ·
1 Parent(s): 4db88ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -311,6 +311,12 @@ if st.button("Generate Patent Insights"):
311
  with tab2:
312
  analyst_output = getattr(results.tasks_output[1], "raw", "No details available.")
313
  st.write(analyst_output)
 
 
 
 
 
 
314
 
315
  charts = []
316
  if enable_advanced_analysis:
 
311
  with tab2:
312
  analyst_output = getattr(results.tasks_output[1], "raw", "No details available.")
313
  st.write(analyst_output)
314
+ # Convert raw text to structured data
315
+ if isinstance(analyst_output, str):
316
+ analyst_output = parse_analyst_output(analyst_output)
317
+ st.subheader("Structured Analyst Output")
318
+ st.write(analyst_output)
319
+
320
 
321
  charts = []
322
  if enable_advanced_analysis: