1711442736zzzeus commited on
Commit
ef6db83
·
2 Parent(s): 12a74c8 e172414

Merge ltx-video-distilled into new Space and resolve conflicts

Browse files
Files changed (4) hide show
  1. Dockerfile +10 -0
  2. README.md +3 -1
  3. app.py +3 -1
  4. requirements.txt +3 -1
Dockerfile ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ # Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker# you will also find guides on how best to write your Dockerfile
2
+ FROM python:3.9
3
+ RUN useradd -m -u 1000 user
4
+ USER user
5
+ ENV PATH="/home/user/.local/bin:$PATH"
6
+ WORKDIR /app
7
+ COPY --chown=user ./requirements.txt requirements.txt
8
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
9
+ COPY --chown=user . /app
10
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
README.md CHANGED
@@ -1,4 +1,5 @@
1
  ---
 
2
  title: LTX Video Fast
3
  emoji: 🎥
4
  colorFrom: yellow
@@ -10,4 +11,5 @@ pinned: false
10
  short_description: ultra-fast video model, LTX 0.9.8 13B distilled
11
  ---
12
 
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
1
  ---
2
+
3
  title: LTX Video Fast
4
  emoji: 🎥
5
  colorFrom: yellow
 
11
  short_description: ultra-fast video model, LTX 0.9.8 13B distilled
12
  ---
13
 
14
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
15
+
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import gradio as gr
2
  import torch
3
  import spaces
@@ -518,4 +519,5 @@ if __name__ == "__main__":
518
  if os.path.exists(models_dir) and os.path.isdir(models_dir):
519
  print(f"Model directory: {Path(models_dir).resolve()}")
520
 
521
- demo.queue().launch(debug=True, share=False, mcp_server=True)
 
 
1
+
2
  import gradio as gr
3
  import torch
4
  import spaces
 
519
  if os.path.exists(models_dir) and os.path.isdir(models_dir):
520
  print(f"Model directory: {Path(models_dir).resolve()}")
521
 
522
+ demo.queue().launch(debug=True, share=False, mcp_server=True)
523
+
requirements.txt CHANGED
@@ -1,3 +1,4 @@
 
1
  accelerate
2
  transformers
3
  sentencepiece
@@ -12,4 +13,5 @@ imageio-ffmpeg
12
  einops
13
  timm
14
  av
15
- git+https://github.com/huggingface/diffusers.git@main
 
 
1
+
2
  accelerate
3
  transformers
4
  sentencepiece
 
13
  einops
14
  timm
15
  av
16
+ git+https://github.com/huggingface/diffusers.git@main
17
+