Removed useless imports
Browse files
app.py
CHANGED
@@ -103,8 +103,8 @@ def search_bar_gr(model_names,slider=True,double_search=False,key=None):
|
|
103 |
ret.insert(0,col2)
|
104 |
return ret
|
105 |
|
106 |
-
|
107 |
-
|
108 |
def _run(path,genes,N,progress_bar):
|
109 |
#Load the model
|
110 |
progress_bar(0.20, desc="Loading Model...",total=100)
|
@@ -258,11 +258,6 @@ def reload_env():
|
|
258 |
|
259 |
return FIGS['fig1'], FIGS['fig2'], FIGS['fig4'], sim_mat_search_x, sim_mat_search_y, viz_search, tree_search
|
260 |
|
261 |
-
|
262 |
-
|
263 |
-
# Load environment variables
|
264 |
-
import dotenv
|
265 |
-
dotenv.load_dotenv()
|
266 |
|
267 |
USERNAME = os.environ['GITHUB_USERNAME']
|
268 |
TOKEN = os.environ['GITHUB_TOKEN']
|
|
|
103 |
ret.insert(0,col2)
|
104 |
return ret
|
105 |
|
106 |
+
import spaces
|
107 |
+
@spaces.GPU(duration=300)
|
108 |
def _run(path,genes,N,progress_bar):
|
109 |
#Load the model
|
110 |
progress_bar(0.20, desc="Loading Model...",total=100)
|
|
|
258 |
|
259 |
return FIGS['fig1'], FIGS['fig2'], FIGS['fig4'], sim_mat_search_x, sim_mat_search_y, viz_search, tree_search
|
260 |
|
|
|
|
|
|
|
|
|
|
|
261 |
|
262 |
USERNAME = os.environ['GITHUB_USERNAME']
|
263 |
TOKEN = os.environ['GITHUB_TOKEN']
|