Move Roboflow API key to environment variable
Browse files- Change hardcoded API key to os.getenv("ROBOFLOW_API_KEY")
- Improves security by using Hugging Face Secrets
- Code can be public while keeping API key private
๐ค Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
app.py
CHANGED
|
@@ -97,7 +97,8 @@ def detect_with_yolo(image, confidence=0.1):
|
|
| 97 |
# ============================================================
|
| 98 |
# Roboflow SDK ์ค์ (์ต์ ํ๋ ๋ฐฉ์)
|
| 99 |
# ============================================================
|
| 100 |
-
|
|
|
|
| 101 |
|
| 102 |
# Roboflow Inference SDK ํด๋ผ์ด์ธํธ (connection pooling ์ง์)
|
| 103 |
roboflow_client = InferenceHTTPClient(
|
|
|
|
| 97 |
# ============================================================
|
| 98 |
# Roboflow SDK ์ค์ (์ต์ ํ๋ ๋ฐฉ์)
|
| 99 |
# ============================================================
|
| 100 |
+
# ํ๊ฒฝ๋ณ์์์ API ํค ์ฝ๊ธฐ (Hugging Face Secrets ์ฌ์ฉ)
|
| 101 |
+
ROBOFLOW_API_KEY = os.getenv("ROBOFLOW_API_KEY", "")
|
| 102 |
|
| 103 |
# Roboflow Inference SDK ํด๋ผ์ด์ธํธ (connection pooling ์ง์)
|
| 104 |
roboflow_client = InferenceHTTPClient(
|