Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -93,7 +93,7 @@ result_md = (
|
|
93 |
)
|
94 |
|
95 |
# Save the result to a temporary text file for download
|
96 |
-
|
97 |
f.write(result_md)
|
98 |
report_path = f.name
|
99 |
|
|
|
93 |
)
|
94 |
|
95 |
# Save the result to a temporary text file for download
|
96 |
+
with tempfile.NamedTemporaryFile(delete=False, suffix=".txt", mode="w") as f:
|
97 |
f.write(result_md)
|
98 |
report_path = f.name
|
99 |
|