CodingTeading commited on
Commit
78603bb
1 Parent(s): 39ccb4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -42,8 +42,8 @@ if __name__ == '__main__':
42
  ModelPath = "weights_v3/"
43
  model_cache = {}
44
 
45
- input_model_name = gr.inputs.Dropdown(os.listdir(ModelPath), default="up2x-latest-denoise2x.pth", label='选择model')
46
- input_tile_mode = gr.inputs.Dropdown([0, 1, 2, 3, 4], default=2, label='选择tile_mode')
47
  input_img = gr.inputs.Image(label='image', type='pil')
48
 
49
  inputs = [input_img, input_model_name, input_tile_mode]
@@ -55,8 +55,7 @@ if __name__ == '__main__':
55
  allow_flagging='never',
56
  examples=[['test-img.jpg', "up2x-latest-denoise2x.pth", 2]],
57
  article='[https://github.com/bilibili/ailab/tree/main/Real-CUGAN](https://github.com/bilibili/ailab/tree/main/Real-CUGAN)<br>'
58
- '感谢b站开源的项目,图片过大会导致内存不足,所有我将图片裁剪小,想体验大图片的效果请自行前往上面的链接。<br>'
59
- '修改bbb'
60
  'The large image will lead to memory limit exceeded. So I crop and resize image. '
61
  'If you want to experience the large image, please go to the link above.')
62
  iface.launch()
 
42
  ModelPath = "weights_v3/"
43
  model_cache = {}
44
 
45
+ input_model_name = gr.inputs.Dropdown(os.listdir(ModelPath), default="up2x-latest-denoise2x.pth", label='모델 선택')
46
+ input_tile_mode = gr.inputs.Dropdown([0, 1, 2, 3, 4], default=2, label='타일 모드 선택')
47
  input_img = gr.inputs.Image(label='image', type='pil')
48
 
49
  inputs = [input_img, input_model_name, input_tile_mode]
 
55
  allow_flagging='never',
56
  examples=[['test-img.jpg', "up2x-latest-denoise2x.pth", 2]],
57
  article='[https://github.com/bilibili/ailab/tree/main/Real-CUGAN](https://github.com/bilibili/ailab/tree/main/Real-CUGAN)<br>'
58
+ '사진이 너무 크면 메모리 부족으로 이어질 수 있으므로 사진을 작게 자르고 큰 사진의 효과를 경험하고 싶으시면 위의 링크로 직접 이동해주세요.<br>'
 
59
  'The large image will lead to memory limit exceeded. So I crop and resize image. '
60
  'If you want to experience the large image, please go to the link above.')
61
  iface.launch()