Hyeonseo commited on
Commit
2e3e50a
β€’
1 Parent(s): 1de13bb

Update presentation_assistant/presentation_assistant.py

Browse files
presentation_assistant/presentation_assistant.py CHANGED
@@ -91,7 +91,7 @@ def text2ppt(token_key, input_prompt, input_theme):
91
  if input_theme == 'default':
92
  subprocess.run(["./pandoc-2.14.2/bin/pandoc", "text2ppt_input.md", "-t", "pptx", "-o", "text2ppt_output.pptx"], capture_output=True)
93
  else:
94
- ppt_theme = "--reference-doc="+input_theme+".pptx"
95
  subprocess.run(["./pandoc-2.14.2/bin/pandoc", "text2ppt_input.md", "-t", "pptx", ppt_theme, "-o", "text2ppt_output.pptx"], capture_output=True)
96
 
97
 
 
91
  if input_theme == 'default':
92
  subprocess.run(["./pandoc-2.14.2/bin/pandoc", "text2ppt_input.md", "-t", "pptx", "-o", "text2ppt_output.pptx"], capture_output=True)
93
  else:
94
+ ppt_theme = "--reference-doc=./template"+input_theme+".pptx"
95
  subprocess.run(["./pandoc-2.14.2/bin/pandoc", "text2ppt_input.md", "-t", "pptx", ppt_theme, "-o", "text2ppt_output.pptx"], capture_output=True)
96
 
97