Offex commited on
Commit
d490a0a
·
verified ·
1 Parent(s): 255c12e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -200,9 +200,6 @@ def delete_file():
200
  return jsonify({'error': 'File nahi mili'}), 404
201
 
202
 
203
- if __name__ == '__main__':
204
- print("✅ Deepu Downloader chal raha hai!")
205
- print(f"📁 Downloads: {DOWNLOAD_DIR}")
206
- print("👉 Browser: http://localhost:8080")
207
- app.run(host='0.0.0.0', port=8080, debug=False)
208
-
 
200
  return jsonify({'error': 'File nahi mili'}), 404
201
 
202
 
203
+ if __name__ == "__main__":
204
+ port = int(os.environ.get("PORT", 7860))
205
+ app.run(host="0.0.0.0", port=port)