Spaces:
Build error
Build error
mrfakename
commited on
Commit
•
380c03c
1
Parent(s):
4a2933a
Docker -> hacky Gradio method
Browse files- Dockerfile +0 -28
- README.md +2 -3
- app.py +7 -0
- packages.txt +1 -0
- requirements.txt +1 -0
Dockerfile
DELETED
@@ -1,28 +0,0 @@
|
|
1 |
-
# FROM nvidia/cuda:12.2.0-base-ubuntu22.04
|
2 |
-
FROM nvidia/cuda:12.3.1-devel-ubuntu20.04
|
3 |
-
ENV DEBIAN_FRONTEND=noninteractive
|
4 |
-
|
5 |
-
RUN apt-get update -y && \
|
6 |
-
apt-get upgrade -y && \
|
7 |
-
apt-get install -y aria2 libgl1 libglib2.0-0 wget git git-lfs python3-pip python-is-python3 ffmpeg curl && \
|
8 |
-
pip install packaging
|
9 |
-
RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y
|
10 |
-
ENV PATH="/root/.cargo/bin:${PATH}"
|
11 |
-
|
12 |
-
|
13 |
-
RUN echo "Installing" && \
|
14 |
-
# pip install -r <(curl -s https://raw.githubusercontent.com/metavoiceio/metavoice-src/main/requirements.txt | tr '\n' ' ' | sed 's/ /\n/g') && \
|
15 |
-
tmp=$(mktemp) && curl -s https://raw.githubusercontent.com/metavoiceio/metavoice-src/main/requirements.txt | tr '\n' ' ' | sed 's/ /\n/g' | sed 's/flash-attn/flash-attn==1.0.5/' > "$tmp" && pip install -r "$tmp" && rm "$tmp" && \
|
16 |
-
adduser --disabled-password --gecos '' user && \
|
17 |
-
mkdir /content && \
|
18 |
-
chown -R user:user /content
|
19 |
-
|
20 |
-
WORKDIR /content
|
21 |
-
USER user
|
22 |
-
EXPOSE 7860
|
23 |
-
|
24 |
-
RUN git clone https://github.com/fakerybakery/metavoice-src . && \
|
25 |
-
pip install -r requirements.txt && \
|
26 |
-
pip install -e .
|
27 |
-
CMD python fam/llm/serving.py --huggingface_repo_id="metavoiceio/metavoice-1B-v0.1" & \
|
28 |
-
python fam/ui/app.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
CHANGED
@@ -3,7 +3,6 @@ title: MetaVoice 1B
|
|
3 |
emoji: 🗣️
|
4 |
colorFrom: blue
|
5 |
colorTo: blue
|
6 |
-
sdk:
|
7 |
pinned: false
|
8 |
-
|
9 |
-
---
|
|
|
3 |
emoji: 🗣️
|
4 |
colorFrom: blue
|
5 |
colorTo: blue
|
6 |
+
sdk: gradio
|
7 |
pinned: false
|
8 |
+
---
|
|
app.py
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import subprocess, os
|
2 |
+
subprocess.run(['git', 'clone', 'https://github.com/metavoiceio/metavoice-src', 'mvsrc'])
|
3 |
+
subprocess.run(['mv', 'mvsrc/*', '.'])
|
4 |
+
subprocess.run(['pip', 'install', '-r', 'requirements.txt'])
|
5 |
+
serving = subprocess.Popen(['python', 'fam/llm/serving.py', '--huggingface_repo_id', 'metavoiceio/metavoice-1B-v0.1'])
|
6 |
+
subprocess.run(['python', 'fam/ui/app.py'])
|
7 |
+
serving.communicate()
|
packages.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
ffmpeg
|
requirements.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
torch
|