Skip to content

Commit

Permalink
Disable "Send to LLM" button if LLM not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
ludwiktrammer committed Sep 26, 2024
1 parent 49113e0 commit 1ab5fca
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ def show_split(index: int, state: gr.State) -> None:
label="Rendered User Prompt", value="", interactive=False
)

# TODO: Gray out the "Send to LLM" button if LLM has not been configured
llm_request_button = gr.Button(value="Send to LLM")
llm_enabled = state.llm_model_name is not None
llm_request_button = gr.Button(value="Send to LLM", interactive=llm_enabled)
llm_prompt_response = gr.Textbox(lines=10, label="LLM response")

render_prompt_button.click(
Expand Down

0 comments on commit 1ab5fca

Please sign in to comment.