Spaces:
Runtime error
Runtime error
Update presentation_assistant/presentation_assistant.py
Browse files
presentation_assistant/presentation_assistant.py
CHANGED
@@ -89,10 +89,10 @@ def text2ppt(token_key, input_prompt, input_theme):
|
|
89 |
f.close()
|
90 |
|
91 |
if input_theme == 'default':
|
92 |
-
subprocess.run(["
|
93 |
else:
|
94 |
-
ppt_theme = "--reference-doc
|
95 |
-
subprocess.run(["
|
96 |
|
97 |
|
98 |
def ppt2script(token_key, input_file, input_type):
|
|
|
89 |
f.close()
|
90 |
|
91 |
if input_theme == 'default':
|
92 |
+
subprocess.run(["/home/user/app/pandoc-2.14.2/bin/pandoc", "/home/user/app/text2ppt_input.md", "-t", "pptx", "-o", "/home/user/app/text2ppt_output.pptx"], capture_output=True)
|
93 |
else:
|
94 |
+
ppt_theme = "--reference-doc=/home/user/app/template"+input_theme+".pptx"
|
95 |
+
subprocess.run(["/home/user/app/pandoc-2.14.2/bin/pandoc", "/home/user/app/text2ppt_input.md", "-t", "pptx", ppt_theme, "-o", "/home/user/app/text2ppt_output.pptx"], capture_output=True)
|
96 |
|
97 |
|
98 |
def ppt2script(token_key, input_file, input_type):
|