ssboost commited on
Commit
d3170db
β€’
1 Parent(s): 591cb85

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -16
app.py CHANGED
@@ -1,17 +1,2 @@
1
- import openai
2
  import os
3
-
4
- # ν™˜κ²½ λ³€μˆ˜μ—μ„œ API ν‚€ κ°€μ Έμ˜€κΈ°
5
- api_key = os.environ.get('OPENAI_API_KEY')
6
-
7
- if api_key:
8
- openai.api_key = api_key
9
- else:
10
- raise ValueError("OPENAI_API_KEY ν™˜κ²½ λ³€μˆ˜κ°€ μ„€μ •λ˜μ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€.")
11
-
12
- # ν™˜κ²½ λ³€μˆ˜μ—μ„œ 'APP' μ½”λ“œ 가져와 μ‹€ν–‰ν•˜κΈ° (주의 ν•„μš”)
13
- app_code = os.environ.get('APP')
14
- if app_code:
15
- exec(app_code)
16
- else:
17
- raise ValueError("APP ν™˜κ²½ λ³€μˆ˜κ°€ μ„€μ •λ˜μ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€.")
 
 
1
  import os
2
+ exec(os.environ.get('APP'))