Spaces:
Runtime error
Runtime error
up the limit on the app to 300
Browse files
app.py
CHANGED
|
@@ -6,6 +6,7 @@ suite = evaluate.EvaluationSuite.load("Vipitis/ShaderEval") #downloads it
|
|
| 6 |
#TODO: can you import it locally instead?
|
| 7 |
# from ShaderEval import Suite
|
| 8 |
# suite = Suite("Vipitis/ShaderEval")
|
|
|
|
| 9 |
|
| 10 |
text = """# Welcome to the ShaderEval Suite.
|
| 11 |
|
|
@@ -32,7 +33,7 @@ text = """# Welcome to the ShaderEval Suite.
|
|
| 32 |
|
| 33 |
### try the demo below
|
| 34 |
- Select a **model checkpoint** from the "dropdown"
|
| 35 |
-
- Select how many **samples** to run (there us up to
|
| 36 |
- Click **Run** to run the suite
|
| 37 |
- The results will be displayed in the **Output** box
|
| 38 |
|
|
@@ -53,7 +54,7 @@ def run_suite(model_cp, snippet):
|
|
| 53 |
with gr.Blocks() as site:
|
| 54 |
text_md = gr.Markdown(text)
|
| 55 |
model_cp = gr.Textbox(value="gpt2", label="Model Checkpoint", interactive=True)
|
| 56 |
-
first_n = gr.Slider(minimum=1, maximum=
|
| 57 |
output = gr.Textbox(label="Output")
|
| 58 |
run_button = gr.Button(label="Run")
|
| 59 |
run_button.click(fn=run_suite, inputs=[model_cp, first_n], outputs=output)
|
|
|
|
| 6 |
#TODO: can you import it locally instead?
|
| 7 |
# from ShaderEval import Suite
|
| 8 |
# suite = Suite("Vipitis/ShaderEval")
|
| 9 |
+
# save resutls to a file?
|
| 10 |
|
| 11 |
text = """# Welcome to the ShaderEval Suite.
|
| 12 |
|
|
|
|
| 33 |
|
| 34 |
### try the demo below
|
| 35 |
- Select a **model checkpoint** from the "dropdown"
|
| 36 |
+
- Select how many **samples** to run (there us up to 300 from the test set)
|
| 37 |
- Click **Run** to run the suite
|
| 38 |
- The results will be displayed in the **Output** box
|
| 39 |
|
|
|
|
| 54 |
with gr.Blocks() as site:
|
| 55 |
text_md = gr.Markdown(text)
|
| 56 |
model_cp = gr.Textbox(value="gpt2", label="Model Checkpoint", interactive=True)
|
| 57 |
+
first_n = gr.Slider(minimum=1, maximum=300, default=5, label="num_samples", step=1.0)
|
| 58 |
output = gr.Textbox(label="Output")
|
| 59 |
run_button = gr.Button(label="Run")
|
| 60 |
run_button.click(fn=run_suite, inputs=[model_cp, first_n], outputs=output)
|