komyu1227 commited on
Commit
f27439b
·
1 Parent(s): 50836fd

fix dockerfile

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -0
  2. serve.py +1 -2
Dockerfile CHANGED
@@ -10,6 +10,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata \
10
 
11
  RUN curl -LsSf https://astral.sh/uv/install.sh | sh
12
  ENV PATH="/root/.local/bin/:$PATH"
 
13
 
14
  RUN uv python install 3.11
15
 
 
10
 
11
  RUN curl -LsSf https://astral.sh/uv/install.sh | sh
12
  ENV PATH="/root/.local/bin/:$PATH"
13
+ RUN chmod +x /root/.local/bin/uv
14
 
15
  RUN uv python install 3.11
16
 
serve.py CHANGED
@@ -11,8 +11,6 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
11
 
12
  model = load_model(device)
13
 
14
- print(f"Model loaded on {device}")
15
-
16
  def transcribe_audio(audio_data_bytes):
17
  try:
18
  start_time = time.time()
@@ -57,4 +55,5 @@ async def transcribe_endpoint(file: UploadFile = File(...)):
57
 
58
 
59
  if __name__ == "__main__":
 
60
  uvicorn.run(app, host="0.0.0.0", port=8000)
 
11
 
12
  model = load_model(device)
13
 
 
 
14
  def transcribe_audio(audio_data_bytes):
15
  try:
16
  start_time = time.time()
 
55
 
56
 
57
  if __name__ == "__main__":
58
+ print(f"Model loaded on {device}")
59
  uvicorn.run(app, host="0.0.0.0", port=8000)