Spaces:
Runtime error
Runtime error
Commit
·
7048d93
1
Parent(s):
f0c2b5f
remove cache
Browse files
app.py
CHANGED
@@ -38,6 +38,7 @@ token = os.getenv("HF_TOKEN")
|
|
38 |
|
39 |
# cache = Cache(CACHE_DIR)
|
40 |
|
|
|
41 |
def get_model_labels(model):
|
42 |
try:
|
43 |
url = hf_hub_url(repo_id=model, filename="config.json")
|
@@ -580,15 +581,23 @@ with gr.Blocks() as demo:
|
|
580 |
)
|
581 |
with gr.Tab("Scoring metadata quality"):
|
582 |
with gr.Row():
|
583 |
-
gr.Markdown(
|
|
|
584 |
# Metadata quality scoring
|
585 |
```
|
586 |
{COMMON_SCORES}
|
587 |
```
|
588 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
589 |
|
590 |
|
591 |
-
demo.launch(
|
592 |
|
593 |
|
594 |
# with gr.Blocks() as demo:
|
|
|
38 |
|
39 |
# cache = Cache(CACHE_DIR)
|
40 |
|
41 |
+
|
42 |
def get_model_labels(model):
|
43 |
try:
|
44 |
url = hf_hub_url(repo_id=model, filename="config.json")
|
|
|
581 |
)
|
582 |
with gr.Tab("Scoring metadata quality"):
|
583 |
with gr.Row():
|
584 |
+
gr.Markdown(
|
585 |
+
f"""
|
586 |
# Metadata quality scoring
|
587 |
```
|
588 |
{COMMON_SCORES}
|
589 |
```
|
590 |
+
|
591 |
+
For example, `TASK_TYPES_WITH_LANGUAGES` defines all the tasks for which it
|
592 |
+
is expected to have language metadata associated with the model.
|
593 |
+
```
|
594 |
+
{TASK_TYPES_WITH_LANGUAGES}
|
595 |
+
```
|
596 |
+
"""
|
597 |
+
)
|
598 |
|
599 |
|
600 |
+
demo.launch()
|
601 |
|
602 |
|
603 |
# with gr.Blocks() as demo:
|