Spaces:
Running
on
Zero
Running
on
Zero
Liam Dyer
commited on
whoops
Browse files
app.py
CHANGED
|
@@ -64,9 +64,7 @@ def convert_pandoc(input_file, filename):
|
|
| 64 |
|
| 65 |
# Convert the file to markdown with pandoc
|
| 66 |
output_file = f"{random_word(16)}.md"
|
| 67 |
-
result = subprocess.call(
|
| 68 |
-
["pandoc", input_file, "-t", "markdown", "-o", output_file]
|
| 69 |
-
)
|
| 70 |
if result != 0:
|
| 71 |
raise ValueError("Error converting file to markdown with pandoc")
|
| 72 |
|
|
|
|
| 64 |
|
| 65 |
# Convert the file to markdown with pandoc
|
| 66 |
output_file = f"{random_word(16)}.md"
|
| 67 |
+
result = subprocess.call(["pandoc", filename, "-t", "markdown", "-o", output_file])
|
|
|
|
|
|
|
| 68 |
if result != 0:
|
| 69 |
raise ValueError("Error converting file to markdown with pandoc")
|
| 70 |
|