Yoon-gu Hwang commited on
Commit
e48a7e5
β€’
1 Parent(s): 19cad62

for debugging

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -93,8 +93,10 @@ def write_docx(gen):
93
  document.add_page_break()
94
  yield df[['No', '이름', 'νƒ€μž…']], None
95
 
96
- if filename not in os.listdir():
97
- document.save(filename)
 
 
98
  return df, filename
99
 
100
  demo = gr.Interface(write_docx, generation, [text, download], title="λŒ€μΉ˜λ™ 포켓λͺ¬ 도감 생성기",
 
93
  document.add_page_break()
94
  yield df[['No', '이름', 'νƒ€μž…']], None
95
 
96
+ print("Saving docx file...")
97
+ print(f"{os.listdir()}")
98
+ document.save(filename)
99
+ print(f"{os.listdir()}")
100
  return df, filename
101
 
102
  demo = gr.Interface(write_docx, generation, [text, download], title="λŒ€μΉ˜λ™ 포켓λͺ¬ 도감 생성기",