Spaces:
Sleeping
Sleeping
Allen Park
commited on
Commit
·
23bdb9e
1
Parent(s):
ba8b0ab
add dropdown gradio element
Browse files
app.py
CHANGED
@@ -133,7 +133,7 @@ with gr.Blocks() as demo:
|
|
133 |
reasoning = gr.Textbox(label="Reasoning")
|
134 |
score = gr.Textbox(label="Score (FAIL if Hallucinated, PASS if not)")
|
135 |
|
136 |
-
|
137 |
# model_dropdown.change(fn=update_model, inputs=[model_dropdown, tokenizer_state, model_state], outputs=[tokenizer_state, model_state])
|
138 |
|
139 |
submit_button.click(fn=model_call, inputs=[question, document, answer], outputs=[reasoning, score])
|
|
|
133 |
reasoning = gr.Textbox(label="Reasoning")
|
134 |
score = gr.Textbox(label="Score (FAIL if Hallucinated, PASS if not)")
|
135 |
|
136 |
+
model_dropdown = gr.Dropdown(choices=["Patronus Lynx 8B", "Patronus Lynx 70B"], value="Patronus Lynx 8B", label="Model")
|
137 |
# model_dropdown.change(fn=update_model, inputs=[model_dropdown, tokenizer_state, model_state], outputs=[tokenizer_state, model_state])
|
138 |
|
139 |
submit_button.click(fn=model_call, inputs=[question, document, answer], outputs=[reasoning, score])
|