Spaces:
Running
Running
gsk-2362-submit-run-local-bug-fix
#8
by
ZeroCommand
- opened
app.py
CHANGED
|
@@ -256,6 +256,9 @@ with gr.Blocks(theme=theme) as iface:
|
|
| 256 |
</h1>
|
| 257 |
Welcome to Giskard Evaluator Space! Get your report immediately by simply input your model id and dataset id below. Follow our leads and improve your model in no time.
|
| 258 |
''')
|
|
|
|
|
|
|
|
|
|
| 259 |
with gr.Row():
|
| 260 |
model_id_input = gr.Textbox(
|
| 261 |
label="Hugging Face model id",
|
|
@@ -299,8 +302,7 @@ with gr.Blocks(theme=theme) as iface:
|
|
| 299 |
|
| 300 |
with gr.Row():
|
| 301 |
example_labels = gr.Label(label='Model Prediction Sample', visible=False)
|
| 302 |
-
|
| 303 |
-
|
| 304 |
run_btn = gr.Button(
|
| 305 |
"Get Evaluation Result",
|
| 306 |
variant="primary",
|
|
@@ -331,6 +333,8 @@ with gr.Blocks(theme=theme) as iface:
|
|
| 331 |
dataset_id_input,
|
| 332 |
dataset_config_input,
|
| 333 |
dataset_split_input,
|
|
|
|
|
|
|
| 334 |
],
|
| 335 |
outputs=[
|
| 336 |
run_btn,
|
|
|
|
| 256 |
</h1>
|
| 257 |
Welcome to Giskard Evaluator Space! Get your report immediately by simply input your model id and dataset id below. Follow our leads and improve your model in no time.
|
| 258 |
''')
|
| 259 |
+
with gr.Row():
|
| 260 |
+
run_local = gr.Checkbox(value=True, label="Run in this Space")
|
| 261 |
+
|
| 262 |
with gr.Row():
|
| 263 |
model_id_input = gr.Textbox(
|
| 264 |
label="Hugging Face model id",
|
|
|
|
| 302 |
|
| 303 |
with gr.Row():
|
| 304 |
example_labels = gr.Label(label='Model Prediction Sample', visible=False)
|
| 305 |
+
|
|
|
|
| 306 |
run_btn = gr.Button(
|
| 307 |
"Get Evaluation Result",
|
| 308 |
variant="primary",
|
|
|
|
| 333 |
dataset_id_input,
|
| 334 |
dataset_config_input,
|
| 335 |
dataset_split_input,
|
| 336 |
+
id2label_mapping_dataframe,
|
| 337 |
+
run_local,
|
| 338 |
],
|
| 339 |
outputs=[
|
| 340 |
run_btn,
|