VatsalPatel18 commited on
Commit
dc549dd
1 Parent(s): 7119b92

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import gradio as gr
2
  import torch
3
  import numpy as np
@@ -58,27 +59,27 @@ css = """
58
  }
59
  """
60
 
61
- @gr.Space_GPU
62
  def run_extract_features():
63
  return extract_features()
64
 
65
- @gr.Space_GPU
66
  def run_find_optimal_clusters(ga, min_clusters, max_clusters):
67
  return find_optimal_clusters(ga, min_clusters, max_clusters)
68
 
69
- @gr.Space_GPU
70
  def run_perform_clustering(ga, num_clusters):
71
  return perform_clustering(ga, num_clusters)
72
 
73
- @gr.Space_GPU
74
  def run_plot_kaplan_meier(ga):
75
  return plot_kaplan_meier(ga)
76
 
77
- @gr.Space_GPU
78
  def run_plot_median_survival_bar(ga):
79
  return plot_median_survival_bar(ga)
80
 
81
- @gr.Space_GPU
82
  def run_perform_log_rank_test(ga):
83
  return perform_log_rank_test(ga)
84
 
 
1
+ import spaces
2
  import gradio as gr
3
  import torch
4
  import numpy as np
 
59
  }
60
  """
61
 
62
+ @spaces.GPU
63
  def run_extract_features():
64
  return extract_features()
65
 
66
+ @spaces.GPU
67
  def run_find_optimal_clusters(ga, min_clusters, max_clusters):
68
  return find_optimal_clusters(ga, min_clusters, max_clusters)
69
 
70
+ @spaces.GPU
71
  def run_perform_clustering(ga, num_clusters):
72
  return perform_clustering(ga, num_clusters)
73
 
74
+ @spaces.GPU
75
  def run_plot_kaplan_meier(ga):
76
  return plot_kaplan_meier(ga)
77
 
78
+ @spaces.GPU
79
  def run_plot_median_survival_bar(ga):
80
  return plot_median_survival_bar(ga)
81
 
82
+ @spaces.GPU
83
  def run_perform_log_rank_test(ga):
84
  return perform_log_rank_test(ga)
85