Spaces:
Running
Running
model_name
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from evaluation_logic import run_evaluation, AVAILABLE_PROMPT_FORMATS
|
|
3 |
|
4 |
def gradio_run_evaluation(model_name, prompt_format):
|
5 |
output = []
|
6 |
-
for result in run_evaluation(model_name, prompt_format):
|
7 |
output.append(result)
|
8 |
yield "\n".join(output)
|
9 |
|
@@ -19,6 +19,6 @@ with gr.Blocks() as demo:
|
|
19 |
start_btn = gr.Button("Start Evaluation")
|
20 |
output = gr.Textbox(label="Output", lines=20)
|
21 |
|
22 |
-
start_btn.click(fn=gradio_run_evaluation, inputs=[model_name
|
23 |
|
24 |
demo.queue().launch()
|
|
|
3 |
|
4 |
def gradio_run_evaluation(model_name, prompt_format):
|
5 |
output = []
|
6 |
+
for result in run_evaluation(str(model_name).strip(), prompt_format):
|
7 |
output.append(result)
|
8 |
yield "\n".join(output)
|
9 |
|
|
|
19 |
start_btn = gr.Button("Start Evaluation")
|
20 |
output = gr.Textbox(label="Output", lines=20)
|
21 |
|
22 |
+
start_btn.click(fn=gradio_run_evaluation, inputs=[model_name, prompt_format], outputs=output)
|
23 |
|
24 |
demo.queue().launch()
|