merve HF Staff commited on
Commit
8ae0c92
·
1 Parent(s): ab85ffe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -71,10 +71,10 @@ def inference(pdf_file, pdf_link, file_btn):
71
  content = sequence.replace(r'\(', '$').replace(r'\)', '$').replace(r'\[', '$$').replace(r'\]', '$$')
72
 
73
  if file_btn:
74
- with open(f"{os.getcwd()}/output.txt","w+") as f:
75
  f.write(content)
76
  f.close()
77
- file_path = f"{os.getcwd()}/output.txt"
78
 
79
  return content, file_path
80
 
 
71
  content = sequence.replace(r'\(', '$').replace(r'\)', '$').replace(r'\[', '$$').replace(r'\]', '$$')
72
 
73
  if file_btn:
74
+ with open(f"{os.getcwd()}/output.md","w+") as f:
75
  f.write(content)
76
  f.close()
77
+ file_path = f"{os.getcwd()}/output.md"
78
 
79
  return content, file_path
80