Skip to content

Commit

Permalink
change
Browse files Browse the repository at this point in the history
  • Loading branch information
abidlabs committed Feb 11, 2025
1 parent 9b0fbb2 commit 8f779d3
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions grompy/transpiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,14 +505,8 @@ def transpile(fn: Callable) -> str:


if __name__ == "__main__":
# import gradio as gr
# def change_textbox(choice: str):
# if choice == "short":
# return gr.Textbox(lines=2, visible=True), gr.Button(interactive=True)
# elif choice == "long":
# return gr.Textbox(lines=8, visible=True, value="Lorem ipsum dolor sit amet"), gr.Button(interactive=True)
# else:
# return gr.Textbox(visible=False), gr.Button(interactive=False)

# js_code = transpile(change_textbox)
def filter_rows_by_term(data: list, search_term: str) -> list:
return [row for row in data if search_term in row[0]]

js_code = transpile(filter_rows_by_term)
print(js_code)

0 comments on commit 8f779d3

Please sign in to comment.