awacke1 commited on
Commit
0b98b49
1 Parent(s): 73a2033

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -618,14 +618,7 @@ def main():
618
  with col_ai:
619
  if st.button("🤖 Run With AI", key=f'run_with_ai_button_{idx}'):
620
  # Use the entire document as input
621
- try:
622
- doc_content = json.loads(doc_str)
623
- # Convert the JSON document to a string representation
624
- doc_input = json.dumps(doc_content, indent=2)
625
- # Call the process_text function with the document content
626
- process_text(doc_input)
627
- except json.JSONDecodeError as e:
628
- st.error(f"Invalid JSON: {str(e)} 🚫")
629
 
630
 
631
 
 
618
  with col_ai:
619
  if st.button("🤖 Run With AI", key=f'run_with_ai_button_{idx}'):
620
  # Use the entire document as input
621
+ search_glossary(json.dumps(editable_doc, indent=2))
 
 
 
 
 
 
 
622
 
623
 
624