Spaces:
Sleeping
Sleeping
Add small text fixes
Browse files- yourbench_space/app.py +5 -5
yourbench_space/app.py
CHANGED
@@ -28,7 +28,7 @@ project_description = """
|
|
28 |
|
29 |
Quickly create zero-shot benchmarks from your documents – keeping models accurate and adaptable
|
30 |
- 📖 [FAQ](#)
|
31 |
-
- 💻 [GitHub](https://github.com/huggingface/yourbench
|
32 |
"""
|
33 |
|
34 |
logger.remove()
|
@@ -51,7 +51,7 @@ def generate_and_return(hf_org, hf_dataset_name, session_state: gr.State):
|
|
51 |
manager = MANAGERS.get(session_state)
|
52 |
if manager is None: # should not be possible
|
53 |
return (
|
54 |
-
"❌ Config generation failed
|
55 |
gr.update(visible=False, interactive=False),
|
56 |
)
|
57 |
|
@@ -68,7 +68,7 @@ def generate_and_return(hf_org, hf_dataset_name, session_state: gr.State):
|
|
68 |
|
69 |
gr.Error("Failed to generate config")
|
70 |
return (
|
71 |
-
"❌ Config generation failed
|
72 |
gr.update(visible=False, interactive=False),
|
73 |
)
|
74 |
|
@@ -226,7 +226,7 @@ with gr.Blocks(theme=gr.themes.Default()) as app:
|
|
226 |
info="Name of your new evaluation dataset",
|
227 |
)
|
228 |
|
229 |
-
with gr.Accordion("Upload
|
230 |
file_input = gr.File(
|
231 |
label="Upload text files",
|
232 |
file_count="multiple",
|
@@ -255,7 +255,7 @@ with gr.Blocks(theme=gr.themes.Default()) as app:
|
|
255 |
def clean_and_confirm(uid):
|
256 |
MANAGERS.clean_workdir(uid)
|
257 |
return (
|
258 |
-
"Deleted all uploaded files
|
259 |
gr.update(value=None),
|
260 |
gr.update(interactive=False),
|
261 |
)
|
|
|
28 |
|
29 |
Quickly create zero-shot benchmarks from your documents – keeping models accurate and adaptable
|
30 |
- 📖 [FAQ](#)
|
31 |
+
- 💻 [GitHub](https://github.com/huggingface/yourbench)
|
32 |
"""
|
33 |
|
34 |
logger.remove()
|
|
|
51 |
manager = MANAGERS.get(session_state)
|
52 |
if manager is None: # should not be possible
|
53 |
return (
|
54 |
+
"❌ Config generation failed",
|
55 |
gr.update(visible=False, interactive=False),
|
56 |
)
|
57 |
|
|
|
68 |
|
69 |
gr.Error("Failed to generate config")
|
70 |
return (
|
71 |
+
"❌ Config generation failed",
|
72 |
gr.update(visible=False, interactive=False),
|
73 |
)
|
74 |
|
|
|
226 |
info="Name of your new evaluation dataset",
|
227 |
)
|
228 |
|
229 |
+
with gr.Accordion("Upload Files"):
|
230 |
file_input = gr.File(
|
231 |
label="Upload text files",
|
232 |
file_count="multiple",
|
|
|
255 |
def clean_and_confirm(uid):
|
256 |
MANAGERS.clean_workdir(uid)
|
257 |
return (
|
258 |
+
"🗑️ Deleted all uploaded files",
|
259 |
gr.update(value=None),
|
260 |
gr.update(interactive=False),
|
261 |
)
|