Prathamesh Sarjerao Vaidya commited on
Commit
550272e
·
1 Parent(s): 321254f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -64,11 +64,11 @@ CMD ["python", "-c", "\
64
  import os; \
65
  import subprocess; \
66
  import time; \
67
- print('🚀 Starting Multilingual Audio Intelligence System...'); \
68
- for dir in ['uploads', 'outputs', 'model_cache', 'temp_files', 'demo_results', '/tmp/matplotlib', '/tmp/fontconfig']: \
69
- os.makedirs(dir, mode=0o777, exist_ok=True); \
70
  subprocess.run(['python', 'model_preloader.py']); \
71
- print('Models loaded successfully'); \
72
  import uvicorn; \
73
  uvicorn.run('web_app:app', host='0.0.0.0', port=7860, workers=1, log_level='info')\
74
  "]
 
64
  import os; \
65
  import subprocess; \
66
  import time; \
67
+ print('Starting Multilingual Audio Intelligence System...'); \
68
+ dirs = ['uploads', 'outputs', 'model_cache', 'temp_files', 'demo_results', '/tmp/matplotlib', '/tmp/fontconfig']; \
69
+ [os.makedirs(d, mode=0o777, exist_ok=True) for d in dirs]; \
70
  subprocess.run(['python', 'model_preloader.py']); \
71
+ print('Models loaded successfully'); \
72
  import uvicorn; \
73
  uvicorn.run('web_app:app', host='0.0.0.0', port=7860, workers=1, log_level='info')\
74
  "]