白鹭先生 commited on
Commit
b5e00f0
1 Parent(s): 58f1e24

修复库安装

Browse files
Files changed (2) hide show
  1. app.py +1 -2
  2. requirements.txt +10 -0
app.py CHANGED
@@ -6,8 +6,7 @@ LastEditTime: 2022-01-13 13:48:57
6
  FilePath: \LicenseGAN\app.py
7
  '''
8
  import os
9
- os.system('pip install torch==1.4.0 torchvision==0.5.0')
10
- os.system('pip install gradio==2.5.3')
11
  from PIL import Image
12
  from esrgan import ESRGAN
13
  import gradio as gr
 
6
  FilePath: \LicenseGAN\app.py
7
  '''
8
  import os
9
+ os.system('pip install requirements.txt')
 
10
  from PIL import Image
11
  from esrgan import ESRGAN
12
  import gradio as gr
requirements.txt ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ scipy==1.2.1
2
+ numpy==1.17.0
3
+ matplotlib==3.1.2
4
+ opencv_python==4.1.2.30
5
+ torch==1.4.0
6
+ torchvision==0.5.0
7
+ tqdm==4.60.0
8
+ Pillow==8.2.0
9
+ h5py==2.10.0
10
+ gradio==2.5.3