merve HF staff commited on
Commit
3df418f
·
1 Parent(s): 228599b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -71,11 +71,11 @@ 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("output.txt","w+") as f:
75
  f.write(content)
76
  f.close()
77
 
78
- return content, "output.txt"
79
 
80
 
81
  css = """
 
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
 
78
+ return content, f"{os.getcwd()}/output.txt"
79
 
80
 
81
  css = """