Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -277,6 +277,11 @@ import ast
|
|
277 |
api_key = os.getenv("OPEN_AI_KEY")
|
278 |
openai.api_key = api_key
|
279 |
|
|
|
|
|
|
|
|
|
|
|
280 |
# ๋ชจ๋ธ ๋ฐ ํ๋ก์ธ์ ๋ก๋
|
281 |
processor = AutoProcessor.from_pretrained("openai/clip-vit-large-patch14")
|
282 |
model_clip = AutoModelForZeroShotImageClassification.from_pretrained("openai/clip-vit-large-patch14")
|
|
|
277 |
api_key = os.getenv("OPEN_AI_KEY")
|
278 |
openai.api_key = api_key
|
279 |
|
280 |
+
if openai.api_key:
|
281 |
+
print("Private Key:", openai.api_key)
|
282 |
+
else:
|
283 |
+
print("Private Key not set.")
|
284 |
+
|
285 |
# ๋ชจ๋ธ ๋ฐ ํ๋ก์ธ์ ๋ก๋
|
286 |
processor = AutoProcessor.from_pretrained("openai/clip-vit-large-patch14")
|
287 |
model_clip = AutoModelForZeroShotImageClassification.from_pretrained("openai/clip-vit-large-patch14")
|