Spaces:
Running
Running
Gregor Betz
commited on
add expert LLM info
Browse files
app.py
CHANGED
|
@@ -355,6 +355,17 @@ with gr.Blocks() as demo:
|
|
| 355 |
tourist_inference_token = gr.Textbox("", label="Inference Token", max_lines=1, placeholder="Not required with HF Inference Api (default)", type="password")
|
| 356 |
with gr.Column(1):
|
| 357 |
tourist_temperature = gr.Slider(0, 1.0, value = TOURIST_MODEL_KWARGS["temperature"], label="Temperature")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 358 |
|
| 359 |
# logic
|
| 360 |
chat_msg = chat_input.submit(add_message, [chatbot, chat_input, conversation_id], [chatbot, chat_input, conversation_id])
|
|
|
|
| 355 |
tourist_inference_token = gr.Textbox("", label="Inference Token", max_lines=1, placeholder="Not required with HF Inference Api (default)", type="password")
|
| 356 |
with gr.Column(1):
|
| 357 |
tourist_temperature = gr.Slider(0, 1.0, value = TOURIST_MODEL_KWARGS["temperature"], label="Temperature")
|
| 358 |
+
with gr.Accordion("Guide LLM Configuration", open=False):
|
| 359 |
+
gr.Markdown("Expert LLM that powers the Guided Reasoning system:")
|
| 360 |
+
gr.Textbox(
|
| 361 |
+
GUIDE_KWARGS["expert_model"],
|
| 362 |
+
label="Model ID",
|
| 363 |
+
max_lines=1,
|
| 364 |
+
interactive=False
|
| 365 |
+
)
|
| 366 |
+
gr.Markdown("Classifier LLM used by Guided Reasoning system:")
|
| 367 |
+
gr.Textbox(GUIDE_KWARGS["classifier_kwargs"]["model_id"], label="Model ID", max_lines=1, interactive=False)
|
| 368 |
+
|
| 369 |
|
| 370 |
# logic
|
| 371 |
chat_msg = chat_input.submit(add_message, [chatbot, chat_input, conversation_id], [chatbot, chat_input, conversation_id])
|