nakamura196 commited on
Commit
4b129cb
·
1 Parent(s): 13b6b0d

chore: downgrade gradio

Browse files
Files changed (3) hide show
  1. Dockerfile +2 -2
  2. requirements.txt +1 -1
  3. src/app.py +1 -1
Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
  # ベースイメージ
2
- FROM python:3.10
3
 
4
  # 作業ディレクトリを設定
5
  WORKDIR /home/user/app
@@ -16,4 +16,4 @@ RUN pip install --no-cache-dir -r requirements.txt
16
  WORKDIR /home/user/app/src
17
 
18
  # アプリを起動
19
- CMD ["python", "app.py"]
 
1
  # ベースイメージ
2
+ FROM python:3.10-slim
3
 
4
  # 作業ディレクトリを設定
5
  WORKDIR /home/user/app
 
16
  WORKDIR /home/user/app/src
17
 
18
  # アプリを起動
19
+ CMD ["gradio", "app.py"]
requirements.txt CHANGED
@@ -9,4 +9,4 @@ protobuf
9
  pyparsing
10
  PyYAML
11
  tqdm
12
- gradio
 
9
  pyparsing
10
  PyYAML
11
  tqdm
12
+ gradio==4.44.1
src/app.py CHANGED
@@ -229,7 +229,7 @@ demo = gr.Interface(
229
  examples=image_path,
230
  article=article,
231
  cache_examples=False,
232
- flagging_mode="never"
233
  )
234
 
235
  demo.launch(share=False, server_name="0.0.0.0")
 
229
  examples=image_path,
230
  article=article,
231
  cache_examples=False,
232
+ # flagging_mode="never"
233
  )
234
 
235
  demo.launch(share=False, server_name="0.0.0.0")