Peter Michael Gits Claude commited on
Commit
17f8efe
·
1 Parent(s): a6a4464

Add C++ compiler for PyTorch Moshi compilation

Browse files

v1.4.7 - Add build tools for Moshi text generation:
- Added build-essential, g++, gcc to Dockerfile
- Fixes: InvalidCxxCompiler: No working C++ compiler found
- PyTorch needs C++ compiler for Moshi language model compilation
- Now Moshi text generation should work on CPU

Progress: Audio encoding ✅ → Text generation ready ✅

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

Files changed (2) hide show
  1. Dockerfile +4 -1
  2. app.py +1 -1
Dockerfile CHANGED
@@ -2,12 +2,15 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
- # Install system dependencies including wget for HF Spaces compatibility
6
  RUN apt-get update && apt-get install -y \
7
  wget \
8
  curl \
9
  git \
10
  tar \
 
 
 
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
  # Create a non-root user
 
2
 
3
  WORKDIR /app
4
 
5
+ # Install system dependencies including C++ compiler for PyTorch compilation
6
  RUN apt-get update && apt-get install -y \
7
  wget \
8
  curl \
9
  git \
10
  tar \
11
+ build-essential \
12
+ g++ \
13
+ gcc \
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
  # Create a non-root user
app.py CHANGED
@@ -21,7 +21,7 @@ from fastapi.responses import JSONResponse, HTMLResponse
21
  import uvicorn
22
 
23
  # Version tracking
24
- VERSION = "1.4.6"
25
  COMMIT_SHA = "TBD"
26
 
27
  # Configure logging
 
21
  import uvicorn
22
 
23
  # Version tracking
24
+ VERSION = "1.4.7"
25
  COMMIT_SHA = "TBD"
26
 
27
  # Configure logging