ZhengPeng7 commited on
Commit
1d4e0fb
·
1 Parent(s): 58c02e6

open examples option. Specify the gradio version to enable the dragging on example images.

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,13 +5,13 @@ import numpy as np
5
  from PIL import Image
6
  import torch
7
  from torchvision import transforms
8
- import gradio as gr
9
 
10
  from models.GCoNet import GCoNet
11
 
12
 
13
  os.system("pip uninstall -y gradio")
14
  os.system("pip install gradio==3.22.1")
 
15
 
16
  device = ['cpu', 'cuda'][0]
17
 
 
5
  from PIL import Image
6
  import torch
7
  from torchvision import transforms
 
8
 
9
  from models.GCoNet import GCoNet
10
 
11
 
12
  os.system("pip uninstall -y gradio")
13
  os.system("pip install gradio==3.22.1")
14
+ import gradio as gr
15
 
16
  device = ['cpu', 'cuda'][0]
17