Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -110,11 +110,11 @@ def text2ppt(token_key, input_prompt, input_theme):
|
|
| 110 |
f.write(data)
|
| 111 |
f.close()
|
| 112 |
|
|
|
|
|
|
|
| 113 |
# subprocess.run(
|
| 114 |
# f"npx @marp-team/marp-cli@latest --pdf-fonts-dir=/usr/share/fonts/truetype/nanum --pdf-default-font=NanumGothic -o output.pdf text2ppt_test.md --chrome-path=/usr/bin/google-chrome-stable",
|
| 115 |
# shell=True)
|
| 116 |
-
|
| 117 |
-
subprocess.run(["./pandoc-2.14.2/bin/pandoc", "text2ppt_test.md", "-t", "pdf", "-o", "output.pdf"], shell=True)
|
| 118 |
|
| 119 |
|
| 120 |
def ppt2script(token_key, input_file, input_type):
|
|
|
|
| 110 |
f.write(data)
|
| 111 |
f.close()
|
| 112 |
|
| 113 |
+
subprocess.run(["./pandoc-2.14.2/bin/pandoc", "text2ppt_test.md", "-t", "pdf", "-o", "output.pdf"], shell=True)
|
| 114 |
+
|
| 115 |
# subprocess.run(
|
| 116 |
# f"npx @marp-team/marp-cli@latest --pdf-fonts-dir=/usr/share/fonts/truetype/nanum --pdf-default-font=NanumGothic -o output.pdf text2ppt_test.md --chrome-path=/usr/bin/google-chrome-stable",
|
| 117 |
# shell=True)
|
|
|
|
|
|
|
| 118 |
|
| 119 |
|
| 120 |
def ppt2script(token_key, input_file, input_type):
|