Abhisksks commited on
Commit
de0dd6a
·
verified ·
1 Parent(s): ac20984

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -177,4 +177,5 @@ def download_audio(filename):
177
  return send_from_directory(AUDIO_DIR, filename, as_attachment=True)
178
 
179
  if __name__ == '__main__':
180
- app.run(debug=False, host='0.0.0.0')
 
 
177
  return send_from_directory(AUDIO_DIR, filename, as_attachment=True)
178
 
179
  if __name__ == '__main__':
180
+ port = int(os.environ.get('PORT', 7860)) # Use PORT from environment or default to 7860
181
+ app.run(debug=False, host='0.0.0.0', port=port)