Spaces:
Sleeping
Sleeping
Commit
·
fdf4266
1
Parent(s):
41a8e71
Moved some wrappers
Browse files
app.py
CHANGED
@@ -105,6 +105,7 @@ def apply_config2():
|
|
105 |
# (n_models_state, *all textboxes, *all load buttons, *all status boxes)
|
106 |
return (n_vis, *tb_updates, *btn_updates, *status_updates)
|
107 |
|
|
|
108 |
# Load a single model and report status
|
109 |
def load_single_model(model_path, use_bfloat16=True):
|
110 |
try:
|
@@ -134,7 +135,6 @@ def check_all_loaded(n_visible, *status_texts):
|
|
134 |
return gr.update(interactive=True)
|
135 |
return gr.update(interactive=False)
|
136 |
|
137 |
-
@spaces.GPU()
|
138 |
def run_scoring(input_text, *args):
|
139 |
"""
|
140 |
args: first MAX_MODELS entries are model paths, followed by threshold_choice and custom_threshold
|
|
|
105 |
# (n_models_state, *all textboxes, *all load buttons, *all status boxes)
|
106 |
return (n_vis, *tb_updates, *btn_updates, *status_updates)
|
107 |
|
108 |
+
@spaces.GPU()
|
109 |
# Load a single model and report status
|
110 |
def load_single_model(model_path, use_bfloat16=True):
|
111 |
try:
|
|
|
135 |
return gr.update(interactive=True)
|
136 |
return gr.update(interactive=False)
|
137 |
|
|
|
138 |
def run_scoring(input_text, *args):
|
139 |
"""
|
140 |
args: first MAX_MODELS entries are model paths, followed by threshold_choice and custom_threshold
|