Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 = """
|