Krish1440 commited on
Commit
119d4e9
·
verified ·
1 Parent(s): 624f78d

Upload 4 files

Browse files
Files changed (2) hide show
  1. app.py +1 -6
  2. requirements.txt +1 -0
app.py CHANGED
@@ -128,9 +128,4 @@ def health_check():
128
  "models_loaded": len(detector.pipelines) if hasattr(detector, 'pipelines') else 0
129
  }
130
 
131
- if __name__ == "__main__":
132
- port = int(os.getenv("PORT", 8000))
133
- # Render requires 0.0.0.0 to be accessible externally
134
- host = "0.0.0.0"
135
- logger.info(f"--- Starting Server on http://{host}:{port} ---")
136
- uvicorn.run(app, host=host, port=port)
 
128
  "models_loaded": len(detector.pipelines) if hasattr(detector, 'pipelines') else 0
129
  }
130
 
131
+ # Standard execution for HF Spaces (uvicorn launched via Docker CMD)
 
 
 
 
 
requirements.txt CHANGED
@@ -7,4 +7,5 @@ numpy
7
  torch
8
  transformers
9
  soundfile
 
10
 
 
7
  torch
8
  transformers
9
  soundfile
10
+ accelerate
11