Skip to content

Commit

Permalink
move variables/functions description to help
Browse files Browse the repository at this point in the history
  • Loading branch information
devxpy committed Dec 7, 2024
1 parent 63926af commit e4b129d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
7 changes: 3 additions & 4 deletions daras_ai_v2/prompt_vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@ def variables_input(
from daras_ai_v2.workflow_url_input import del_button

def render_title_desc():
gui.write(label)
gui.caption(
f"{description} <a href='/variables-help' target='_blank'>Learn more</a>.",
unsafe_allow_html=True,
gui.write(
label,
help=f"{description} <a href='/variables-help' target='_blank'>Learn more</a>.",
)

# find all variables in the prompts
Expand Down
10 changes: 5 additions & 5 deletions functions/recipe_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,11 @@ def render_function_input(list_key: str, del_key: str, d: dict):
with gui.div(className="ps-1"):
gui.session_state.setdefault(key, [{}])
with gui.div(className="d-flex align-items-center"):
gui.write("###### Functions")
gui.caption(
"Functions give your workflow the ability run Javascript code (with webcalls!) allowing it execute logic, use common JS libraries or make external API calls before or after the workflow runs. <a href='/functions-help' target='_blank'>Learn more.</a>",
unsafe_allow_html=True,
)
gui.write(
"###### Functions",
help="Functions give your workflow the ability run Javascript code (with webcalls!) allowing it execute logic, use common JS libraries or make external API calls before or after the workflow runs.\n"
"<a href='/functions-help' target='_blank'>Learn more.</a>",
)
list_view_editor(
add_btn_label="Add Function",
add_btn_type="tertiary",
Expand Down

0 comments on commit e4b129d

Please sign in to comment.