Spaces:
Sleeping
Sleeping
ZeroCommand
commited on
Commit
·
07461b5
1
Parent(s):
261e3ff
clean code
Browse files- app_text_classification.py +0 -5
- text_classification.py +0 -2
app_text_classification.py
CHANGED
@@ -148,11 +148,6 @@ def get_demo():
|
|
148 |
inputs=[model_id_input],
|
149 |
outputs=[dataset_id_input],
|
150 |
)
|
151 |
-
# then(
|
152 |
-
# fn=check_dataset,
|
153 |
-
# inputs=[dataset_id_input],
|
154 |
-
# outputs=[dataset_config_input, dataset_split_input, loading_status]
|
155 |
-
# )
|
156 |
|
157 |
gr.on(
|
158 |
triggers=[dataset_id_input.input, dataset_id_input.select],
|
|
|
148 |
inputs=[model_id_input],
|
149 |
outputs=[dataset_id_input],
|
150 |
)
|
|
|
|
|
|
|
|
|
|
|
151 |
|
152 |
gr.on(
|
153 |
triggers=[dataset_id_input.input, dataset_id_input.select],
|
text_classification.py
CHANGED
@@ -408,8 +408,6 @@ def get_dataset_splits(dataset_id, dataset_config):
|
|
408 |
return None
|
409 |
try:
|
410 |
splits = dataset_info["splits"]
|
411 |
-
'''
|
412 |
-
[{"dataset":"go_emotions","config":"raw","split":"train"},{"dataset":"go_emotions","config":"simplified","split":"train"},{"dataset":"go_emotions","config":"simplified","split":"validation"},{"dataset":"go_emotions","config":"simplified","split":"test"}]'''
|
413 |
return [split["split"] for split in splits if split["config"] == dataset_config]
|
414 |
except Exception:
|
415 |
return None
|
|
|
408 |
return None
|
409 |
try:
|
410 |
splits = dataset_info["splits"]
|
|
|
|
|
411 |
return [split["split"] for split in splits if split["config"] == dataset_config]
|
412 |
except Exception:
|
413 |
return None
|