shgao commited on
Commit
6c0d858
1 Parent(s): 50b38bd
Files changed (2) hide show
  1. app.py +3 -0
  2. requirements.txt +2 -2
app.py CHANGED
@@ -1,4 +1,7 @@
 
 
1
  import gradio as gr
 
2
  import os
3
 
4
  from sam2edit import create_demo as create_demo_edit_anything
 
1
+ result = subprocess.run(
2
+ ['pip', 'install', 'https://gradio-main-build.s3.amazonaws.com/bebfb72b353a4280155cf7070441fc476ac10172/gradio-3.28.3-py3-none-any.whl'], check=True)
3
  import gradio as gr
4
+
5
  import os
6
 
7
  from sam2edit import create_demo as create_demo_edit_anything
requirements.txt CHANGED
@@ -3,8 +3,8 @@ torch==1.13.1+cu117
3
  torchvision==0.14.1+cu117
4
  torchaudio==0.13.1
5
  numpy==1.23.1
6
- gradio==3.26.0
7
- gradio-client==0.1.2
8
  albumentations==1.3.0
9
  opencv-contrib-python==4.3.0.36
10
  imageio==2.9.0
 
3
  torchvision==0.14.1+cu117
4
  torchaudio==0.13.1
5
  numpy==1.23.1
6
+ gradio==3.30.0
7
+ gradio-client==0.2.4
8
  albumentations==1.3.0
9
  opencv-contrib-python==4.3.0.36
10
  imageio==2.9.0