AtomCosmic commited on
Commit
7f58701
·
verified ·
1 Parent(s): e2dad92

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -23,6 +23,7 @@ pipeline = None
23
  async def load_pipeline():
24
  global pipeline
25
  hf_token = os.environ.get("HF_TOKEN")
 
26
  if not hf_token:
27
  logger.error("HF_TOKEN not set — diarization will not work")
28
  return
@@ -121,6 +122,6 @@ async def diarize(
121
  if tmp_path and os.path.exists(tmp_path):
122
  os.unlink(tmp_path)
123
 
124
-
125
  if __name__ == "__main__":
126
  uvicorn.run(app, host="0.0.0.0", port=7860)
 
23
  async def load_pipeline():
24
  global pipeline
25
  hf_token = os.environ.get("HF_TOKEN")
26
+ logger.info(f"HF_TOKEN exists: {bool(hf_token)}")
27
  if not hf_token:
28
  logger.error("HF_TOKEN not set — diarization will not work")
29
  return
 
122
  if tmp_path and os.path.exists(tmp_path):
123
  os.unlink(tmp_path)
124
 
125
+ #trigger rebuild
126
  if __name__ == "__main__":
127
  uvicorn.run(app, host="0.0.0.0", port=7860)