sjtans commited on
Commit
3a9d9d9
·
verified ·
1 Parent(s): fa9eb60

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,5 +1,5 @@
1
  import gradio as gr
2
- import spaces
3
 
4
  import tifffile as tiff
5
  import zarr
@@ -53,7 +53,7 @@ def download_model():
53
  fpath= download_model()
54
  print(fpath)
55
 
56
- @spaces.GPU(duration=60)
57
  def load_model_gpu60(fpath):
58
  return keras.saving.load_model(fpath, compile=False, safe_mode=False)
59
 
@@ -368,7 +368,7 @@ def add_boxes_norm_path(filepath, boxes):
368
  return filepath
369
 
370
 
371
- @spaces.GPU(duration=60)
372
  def run_model_gpu60(model, tensor):
373
  result = model(tensor).numpy()
374
  return result
 
1
  import gradio as gr
2
+ #import spaces
3
 
4
  import tifffile as tiff
5
  import zarr
 
53
  fpath= download_model()
54
  print(fpath)
55
 
56
+ #@spaces.GPU(duration=60)
57
  def load_model_gpu60(fpath):
58
  return keras.saving.load_model(fpath, compile=False, safe_mode=False)
59
 
 
368
  return filepath
369
 
370
 
371
+ #@spaces.GPU(duration=60)
372
  def run_model_gpu60(model, tensor):
373
  result = model(tensor).numpy()
374
  return result