Spaces:
Sleeping
Sleeping
File size: 653 Bytes
6575706 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
"""
κ°λ° νκ²½μμ λΉ λ₯΄κ² μ€νν μ μλ μ€ν¬λ¦½νΈ
"""
import os
import logging
import webbrowser
from app.app import app
# λ‘κ±° μ€μ
logging.basicConfig(
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
level=logging.INFO
)
logger = logging.getLogger(__name__)
if __name__ == "__main__":
port = int(os.environ.get("PORT", 5000))
logger.info(f"μλ²λ₯Ό http://localhost:{port}μμ μμν©λλ€...")
# λΈλΌμ°μ μλ μ€ν (μ ν μ¬ν)
webbrowser.open_new(f"http://localhost:{port}")
# νλΌμ€ν¬ μλ² μ€ν
app.run(debug=True, host="0.0.0.0", port=port)
|