Spaces:
Runtime error
Runtime error
Mustafa Öztürk commited on
Commit ·
fb59c9d
1
Parent(s): cce12b3
fix: update API_URL to use environment variable for flexibility
Browse files
app.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
import io
|
|
|
|
| 2 |
import subprocess
|
| 3 |
import time
|
| 4 |
from datetime import datetime
|
|
@@ -178,7 +179,7 @@ hr { border-color:#1e2d45 !important; }
|
|
| 178 |
unsafe_allow_html=True,
|
| 179 |
)
|
| 180 |
|
| 181 |
-
API_URL = "
|
| 182 |
|
| 183 |
VERDICT_COLORS = {
|
| 184 |
"CRITICAL": "#e03030",
|
|
|
|
| 1 |
import io
|
| 2 |
+
import os
|
| 3 |
import subprocess
|
| 4 |
import time
|
| 5 |
from datetime import datetime
|
|
|
|
| 179 |
unsafe_allow_html=True,
|
| 180 |
)
|
| 181 |
|
| 182 |
+
API_URL = os.getenv("SENTINEL_API_URL", "https://moztrk-sentinel-api.hf.space/analyze")
|
| 183 |
|
| 184 |
VERDICT_COLORS = {
|
| 185 |
"CRITICAL": "#e03030",
|