Yw22 commited on
Commit
dc4889e
1 Parent(s): f9cca8d
Files changed (2) hide show
  1. app.py +5 -5
  2. requirements.txt +1 -1
app.py CHANGED
@@ -1,8 +1,8 @@
1
  import os
2
- # print("Installing correct gradio version...")
3
- # os.system("pip uninstall -y gradio")
4
- # os.system("pip install gradio==3.50.0")
5
- # print("Installing Finished!")
6
 
7
 
8
  import gradio as gr
@@ -392,7 +392,7 @@ def reset_states(first_frame_path, tracking_points):
392
  return {input_image:None, first_frame_path_var: first_frame_path, tracking_points_var: tracking_points}
393
 
394
 
395
- def preprocess_image(image, tracking_points):
396
  image_pil = image2pil(image.name)
397
  raw_w, raw_h = image_pil.size
398
  resize_ratio = max(384/raw_w, 256/raw_h)
 
1
  import os
2
+ print("Installing correct gradio version...")
3
+ os.system("pip uninstall -y gradio")
4
+ os.system("pip install gradio==4.37.2")
5
+ print("Installing Finished!")
6
 
7
 
8
  import gradio as gr
 
392
  return {input_image:None, first_frame_path_var: first_frame_path, tracking_points_var: tracking_points}
393
 
394
 
395
+ def preprocess_image(image):
396
  image_pil = image2pil(image.name)
397
  raw_w, raw_h = image_pil.size
398
  resize_ratio = max(384/raw_w, 256/raw_h)
requirements.txt CHANGED
@@ -6,7 +6,7 @@ gradio==4.37.2
6
  ftfy
7
  tensorboard
8
  datasets
9
- Pillow==9.5.0
10
  opencv-python
11
  imgaug
12
  accelerate==0.23.0
 
6
  ftfy
7
  tensorboard
8
  datasets
9
+ Pillow
10
  opencv-python
11
  imgaug
12
  accelerate==0.23.0