Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -110,10 +110,12 @@ def text2ppt(token_key, input_prompt, input_theme):
|
|
110 |
f.write(data)
|
111 |
f.close()
|
112 |
|
113 |
-
subprocess.run(
|
114 |
-
|
115 |
-
|
116 |
|
|
|
|
|
117 |
|
118 |
def ppt2script(token_key, input_file, input_type):
|
119 |
openai.api_key = token_key
|
|
|
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"], capture_output=True)
|
118 |
+
|
119 |
|
120 |
def ppt2script(token_key, input_file, input_type):
|
121 |
openai.api_key = token_key
|