xenux4u commited on
Commit
1ff6eb0
Β·
verified Β·
1 Parent(s): 65ed8c3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -3
app.py CHANGED
@@ -422,6 +422,12 @@ def api_validate_doi():
422
  # Entry Point
423
  # ─────────────────────────────────────────────
424
  if __name__ == "__main__":
425
- port = int(os.environ.get("PORT", 5000))
426
- print(f"[ORBIT] http://127.0.0.1:{port}")
427
- app.run(host="0.0.0.0", port=port, debug=Config.DEBUG)
 
 
 
 
 
 
 
422
  # Entry Point
423
  # ─────────────────────────────────────────────
424
  if __name__ == "__main__":
425
+ # Hugging Face menggunakan port 7860 secara default
426
+ port = int(os.environ.get("PORT", 7860))
427
+
428
+ # Cetak info untuk log server
429
+ print(f"[ORBIT] Starting server on port {port}...")
430
+
431
+ # Pada produksi, debug harus False.
432
+ # Kita set False secara manual atau pastikan Config.DEBUG di config.py adalah False
433
+ app.run(host="0.0.0.0", port=port, debug=False)