yuchenlin commited on
Commit
474fca3
·
verified ·
1 Parent(s): 133bbde

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -93,5 +93,8 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
93
  )
94
 
95
  if __name__ == '__main__':
 
 
 
96
  multiprocessing.set_start_method('spawn')
97
- demo.launch(share=False, show_api=False)
 
93
  )
94
 
95
  if __name__ == '__main__':
96
+ # make logs dir if it does not exist
97
+ if not os.path.exists('logs'):
98
+ os.makedirs('logs')
99
  multiprocessing.set_start_method('spawn')
100
+ demo.launch(share=False, show_api=False)