Hyeonseo commited on
Commit
783e83c
β€’
1 Parent(s): aa557a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -34,8 +34,8 @@ with tab1:
34
  st.markdown(contents)
35
 
36
  # ν…ŒμŠ€νŠΈ
37
- test_ppt_theme = "--reference-doc="+"./template/blue"+".pptx"
38
- subprocess.run(["./pandoc-2.14.2/bin/pandoc", "text2ppt_test.md", "-t", "pptx", test_ppt_theme, "-o", "output.pptx"], capture_output=True)
39
  print(os.listdir(os.getcwd()))
40
  prs = Presentation("output.pptx")
41
  binary_output = BytesIO()
@@ -86,7 +86,7 @@ with tab2:
86
  if input_text_check == True:
87
  with st.spinner('Wait for it...'):
88
  pa.text2ppt(gpt_token, pa.generate_text2ppt_input_prompt(status, input_text, page_choice), thema_select)
89
- prs = Presentation("text2ppt_output.pptx")
90
  binary_output = BytesIO()
91
  prs.save(binary_output)
92
  st.success('Done!')
 
34
  st.markdown(contents)
35
 
36
  # ν…ŒμŠ€νŠΈ
37
+ test_ppt_theme = "--reference-doc="+"/home/user/app/template/blue"+".pptx"
38
+ subprocess.run(["/home/user/app/pandoc-2.14.2/bin/pandoc", "text2ppt_test.md", "-t", "pptx", test_ppt_theme, "-o", "output.pptx"], capture_output=True)
39
  print(os.listdir(os.getcwd()))
40
  prs = Presentation("output.pptx")
41
  binary_output = BytesIO()
 
86
  if input_text_check == True:
87
  with st.spinner('Wait for it...'):
88
  pa.text2ppt(gpt_token, pa.generate_text2ppt_input_prompt(status, input_text, page_choice), thema_select)
89
+ prs = Presentation("/home/user/app/text2ppt_output.pptx")
90
  binary_output = BytesIO()
91
  prs.save(binary_output)
92
  st.success('Done!')