SyedSubahani commited on
Commit
c69eb7c
·
verified ·
1 Parent(s): d75783e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -191,6 +191,8 @@ with st.sidebar:
191
  with open(file_path, "wb") as f:
192
  f.write(uploaded_file.getvalue())
193
 
 
 
194
  document_path = os.path.join(temp_dir,"parsed_document.md")
195
  with open(document_path, "w", encoding="utf-8") as f: # Ensuring UTF-8 encoding
196
  f.write(str(documents))
 
191
  with open(file_path, "wb") as f:
192
  f.write(uploaded_file.getvalue())
193
 
194
+ documents = LlamaParse(result_type="markdown").load_data(file_path)
195
+
196
  document_path = os.path.join(temp_dir,"parsed_document.md")
197
  with open(document_path, "w", encoding="utf-8") as f: # Ensuring UTF-8 encoding
198
  f.write(str(documents))