Hyeonseo commited on
Commit
b2745d7
·
1 Parent(s): 683a1be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
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
- 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
 
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