Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
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 |
|