hysts HF staff commited on
Commit
c96d5a7
1 Parent(s): 37ec3df
Files changed (5) hide show
  1. .pre-commit-config.yaml +13 -8
  2. Dockerfile +1 -1
  3. app.py +1 -1
  4. requirements.txt +2 -2
  5. style.css +1 -0
.pre-commit-config.yaml CHANGED
@@ -1,7 +1,7 @@
1
- exclude: patch
2
  repos:
3
  - repo: https://github.com/pre-commit/pre-commit-hooks
4
- rev: v4.4.0
5
  hooks:
6
  - id: check-executables-have-shebangs
7
  - id: check-json
@@ -20,25 +20,30 @@ repos:
20
  - id: docformatter
21
  args: ["--in-place"]
22
  - repo: https://github.com/pycqa/isort
23
- rev: 5.12.0
24
  hooks:
25
  - id: isort
26
  args: ["--profile", "black"]
27
  - repo: https://github.com/pre-commit/mirrors-mypy
28
- rev: v1.5.1
29
  hooks:
30
  - id: mypy
31
  args: ["--ignore-missing-imports"]
32
  additional_dependencies:
33
- ["types-python-slugify", "types-requests", "types-PyYAML"]
 
 
 
 
 
34
  - repo: https://github.com/psf/black
35
- rev: 23.9.1
36
  hooks:
37
  - id: black
38
  language_version: python3.10
39
  args: ["--line-length", "119"]
40
  - repo: https://github.com/kynan/nbstripout
41
- rev: 0.6.1
42
  hooks:
43
  - id: nbstripout
44
  args:
@@ -47,7 +52,7 @@ repos:
47
  "metadata.interpreter metadata.kernelspec cell.metadata.pycharm",
48
  ]
49
  - repo: https://github.com/nbQA-dev/nbQA
50
- rev: 1.7.0
51
  hooks:
52
  - id: nbqa-black
53
  - id: nbqa-pyupgrade
 
1
+ exclude: ^patch
2
  repos:
3
  - repo: https://github.com/pre-commit/pre-commit-hooks
4
+ rev: v4.6.0
5
  hooks:
6
  - id: check-executables-have-shebangs
7
  - id: check-json
 
20
  - id: docformatter
21
  args: ["--in-place"]
22
  - repo: https://github.com/pycqa/isort
23
+ rev: 5.13.2
24
  hooks:
25
  - id: isort
26
  args: ["--profile", "black"]
27
  - repo: https://github.com/pre-commit/mirrors-mypy
28
+ rev: v1.10.0
29
  hooks:
30
  - id: mypy
31
  args: ["--ignore-missing-imports"]
32
  additional_dependencies:
33
+ [
34
+ "types-python-slugify",
35
+ "types-requests",
36
+ "types-PyYAML",
37
+ "types-pytz",
38
+ ]
39
  - repo: https://github.com/psf/black
40
+ rev: 24.4.2
41
  hooks:
42
  - id: black
43
  language_version: python3.10
44
  args: ["--line-length", "119"]
45
  - repo: https://github.com/kynan/nbstripout
46
+ rev: 0.7.1
47
  hooks:
48
  - id: nbstripout
49
  args:
 
52
  "metadata.interpreter metadata.kernelspec cell.metadata.pycharm",
53
  ]
54
  - repo: https://github.com/nbQA-dev/nbQA
55
+ rev: 1.8.5
56
  hooks:
57
  - id: nbqa-black
58
  - id: nbqa-pyupgrade
Dockerfile CHANGED
@@ -35,7 +35,7 @@ WORKDIR ${HOME}/app
35
 
36
  RUN curl https://pyenv.run | bash
37
  ENV PATH=${HOME}/.pyenv/shims:${HOME}/.pyenv/bin:${PATH}
38
- ENV PYTHON_VERSION=3.10.9
39
  RUN pyenv install ${PYTHON_VERSION} && \
40
  pyenv global ${PYTHON_VERSION} && \
41
  pyenv rehash && \
 
35
 
36
  RUN curl https://pyenv.run | bash
37
  ENV PATH=${HOME}/.pyenv/shims:${HOME}/.pyenv/bin:${PATH}
38
+ ENV PYTHON_VERSION=3.10.14
39
  RUN pyenv install ${PYTHON_VERSION} && \
40
  pyenv global ${PYTHON_VERSION} && \
41
  pyenv rehash && \
app.py CHANGED
@@ -44,7 +44,7 @@ with gr.Blocks(css="style.css") as demo:
44
 
45
  with gr.Row():
46
  with gr.Column():
47
- with gr.Box():
48
  model_id = gr.Dropdown(
49
  label="Model ID",
50
  choices=[
 
44
 
45
  with gr.Row():
46
  with gr.Column():
47
+ with gr.Group():
48
  model_id = gr.Dropdown(
49
  label="Model ID",
50
  choices=[
requirements.txt CHANGED
@@ -4,8 +4,8 @@ decord==0.6.0
4
  diffusers[torch]==0.11.1
5
  einops==0.6.1
6
  ftfy==6.1.1
7
- gradio==3.45.0
8
- huggingface-hub==0.16.4
9
  imageio==2.31.0
10
  imageio-ffmpeg==0.4.8
11
  omegaconf==2.3.0
 
4
  diffusers[torch]==0.11.1
5
  einops==0.6.1
6
  ftfy==6.1.1
7
+ gradio==4.36.1
8
+ huggingface-hub==0.23.3
9
  imageio==2.31.0
10
  imageio-ffmpeg==0.4.8
11
  omegaconf==2.3.0
style.css CHANGED
@@ -1,5 +1,6 @@
1
  h1 {
2
  text-align: center;
 
3
  }
4
 
5
  #duplicate-button {
 
1
  h1 {
2
  text-align: center;
3
+ display: block;
4
  }
5
 
6
  #duplicate-button {