Spaces:
Runtime error
Runtime error
| # استخدام نسخة بايثون مستقرة جداً | |
| FROM python:3.10-slim | |
| # تثبيت مكتبات النظام الضرورية للصوت (بدون ملفات زايدة باش ما يثقلش السيرفر) | |
| RUN apt-get update && apt-get install -y \ | |
| ffmpeg \ | |
| portaudio19-dev \ | |
| git \ | |
| gcc \ | |
| python3-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # تجهيز مجلد العمل | |
| WORKDIR /app | |
| # تحميل المحرك | |
| RUN git clone https://github.com/IAHispano/Applio . | |
| # تثبيت المكتبات بالترتيب وبدون مشاكل | |
| RUN pip install --no-cache-dir --upgrade pip | |
| RUN pip install --no-cache-dir matplotlib regex tokenizers | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| RUN pip install --no-cache-dir torchfcpe resampy pypresence | |
| # إخبار Hugging Face إننا بنخدموا على بورت 7860 | |
| ENV GRADIO_SERVER_NAME="0.0.0.0" | |
| ENV GRADIO_SERVER_PORT=7860 | |
| # تشغيل الأداة مباشرة | |
| CMD ["python", "app.py"] |