byh711 commited on
Commit
cca1868
·
verified ·
1 Parent(s): e6e33fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -21,11 +21,12 @@ doc_converter = DocumentConverter(
21
 
22
  def convert_to_markdown(file):
23
  # Save the uploaded file to a temporary path
24
- input_path = Path(file.name)
25
- file.save(str(input_path))
26
 
27
  # Convert the document
28
- result = doc_converter.convert(str(input_path))
 
29
 
30
  # Prepare output directory
31
  output_dir = Path("output")
 
21
 
22
  def convert_to_markdown(file):
23
  # Save the uploaded file to a temporary path
24
+ # input_path = Path(file.name)
25
+ # file.save(str(input_path))
26
 
27
  # Convert the document
28
+ # result = doc_converter.convert(str(input_path))
29
+ result = doc_converter.convert(file)
30
 
31
  # Prepare output directory
32
  output_dir = Path("output")