Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
75 |
f.write(content)
|
76 |
f.close()
|
77 |
-
file_path = f"{os.getcwd()}/output.
|
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 |
|