Upload 3 files
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@ app.add_middleware(
|
|
| 21 |
)
|
| 22 |
|
| 23 |
# ── (Jednoduché) Bearer auth přes tajný token v headeru Authorization ----------
|
| 24 |
-
API_TOKEN = os.environ.get("
|
| 25 |
|
| 26 |
def check_auth(auth_header: Optional[str]):
|
| 27 |
if API_TOKEN:
|
|
|
|
| 21 |
)
|
| 22 |
|
| 23 |
# ── (Jednoduché) Bearer auth přes tajný token v headeru Authorization ----------
|
| 24 |
+
API_TOKEN = os.environ.get("VITE_API_TOKEN") # nastav v HF Space Settings → Secrets
|
| 25 |
|
| 26 |
def check_auth(auth_header: Optional[str]):
|
| 27 |
if API_TOKEN:
|