lukemelas commited on
Commit
6c04cab
1 Parent(s): e11cde7

Update requirements and dependencies

Browse files
Files changed (2) hide show
  1. app.py +1 -5
  2. requirements.txt +6 -0
app.py CHANGED
@@ -1,6 +1,4 @@
1
  import io
2
- import os.path
3
- import sys
4
 
5
  import gradio as gr
6
  import matplotlib.pyplot as plt
@@ -8,13 +6,11 @@ import numpy as np
8
  import scipy.sparse
9
  import torch
10
  import torch.nn.functional as F
11
- import torchvision
12
  import torchvision.transforms.functional as TF
13
  from gradio.inputs import Image as GradioInputImage
14
  from gradio.outputs import Image as GradioOutputImage
15
  from PIL import Image
16
  from scipy.sparse.linalg import eigsh
17
- from skimage.color import label2rgb
18
  from torch.utils.hooks import RemovableHandle
19
  from torchvision import transforms
20
  from torchvision.utils import make_grid
@@ -193,7 +189,7 @@ examples = [f"examples/{stem}.jpg" for stem in [
193
  ]]
194
 
195
  title = "Deep Spectral Segmentation"
196
- description = "Deep spectral segmentation..."
197
  thumbnail = "https://raw.githubusercontent.com/gradio-app/hub-echonet/master/thumbnail.png"
198
 
199
  # Gradio
 
1
  import io
 
 
2
 
3
  import gradio as gr
4
  import matplotlib.pyplot as plt
 
6
  import scipy.sparse
7
  import torch
8
  import torch.nn.functional as F
 
9
  import torchvision.transforms.functional as TF
10
  from gradio.inputs import Image as GradioInputImage
11
  from gradio.outputs import Image as GradioOutputImage
12
  from PIL import Image
13
  from scipy.sparse.linalg import eigsh
 
14
  from torch.utils.hooks import RemovableHandle
15
  from torchvision import transforms
16
  from torchvision.utils import make_grid
 
189
  ]]
190
 
191
  title = "Deep Spectral Segmentation"
192
+ description = "Deep spectral segmentation (add description here) ..."
193
  thumbnail = "https://raw.githubusercontent.com/gradio-app/hub-echonet/master/thumbnail.png"
194
 
195
  # Gradio
requirements.txt CHANGED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ -f https://download.pytorch.org/whl/torch_stable.html
2
+ numpy
3
+ matplotlib
4
+ torch==1.9.1+cpu
5
+ torchvision==0.10.1+cpu
6
+ scipy