Mustafa Öztürk commited on
Commit
fb59c9d
·
1 Parent(s): cce12b3

fix: update API_URL to use environment variable for flexibility

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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 = "http://127.0.0.1:8000/analyze"
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",