AIRider's picture
Update app.py
ec4732a verified
raw
history blame contribute delete
353 Bytes
import os
# ν™˜κ²½ λ³€μˆ˜μ—μ„œ API ν‚€ κ°€μ Έμ˜€κΈ°
api_key = os.environ.get('AA_KEY')
if api_key:
AA_KEY = api_key
else:
raise ValueError("AA_KEY ν™˜κ²½ λ³€μˆ˜κ°€ μ„€μ •λ˜μ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€.")
app_code = os.environ.get('APP')
if app_code:
exec(app_code)
else:
raise ValueError("APP ν™˜κ²½ λ³€μˆ˜κ°€ μ„€μ •λ˜μ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€.")