Spaces:
Runtime error
Runtime error
Update presentation_assistant/presentation_assistant.py
Browse files
presentation_assistant/presentation_assistant.py
CHANGED
@@ -94,7 +94,7 @@ def text2ppt(token_key, input_prompt, input_theme):
|
|
94 |
if input_theme == 'default':
|
95 |
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)
|
96 |
else:
|
97 |
-
ppt_theme = "--reference-doc=/home/user/app/template"+input_theme+".pptx"
|
98 |
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)
|
99 |
|
100 |
|
|
|
94 |
if input_theme == 'default':
|
95 |
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)
|
96 |
else:
|
97 |
+
ppt_theme = "--reference-doc=/home/user/app/template/"+input_theme+".pptx"
|
98 |
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)
|
99 |
|
100 |
|