Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
58c02e6
1
Parent(s):
ab4666a
open examples option. Specify the gradio version to enable the dragging on example images.
Browse files- app.py +3 -0
- requirements.txt +0 -1
app.py
CHANGED
@@ -10,6 +10,9 @@ import gradio as gr
|
|
10 |
from models.GCoNet import GCoNet
|
11 |
|
12 |
|
|
|
|
|
|
|
13 |
device = ['cpu', 'cuda'][0]
|
14 |
|
15 |
|
|
|
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 |
|
18 |
|
requirements.txt
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
gradio==3.22.1
|
2 |
torch==1.13.1
|
3 |
torchvision==0.14.1
|
4 |
opencv-python
|
|
|
|
|
1 |
torch==1.13.1
|
2 |
torchvision==0.14.1
|
3 |
opencv-python
|