MilanM commited on
Commit
6ab8af1
·
verified ·
1 Parent(s): 9810a92

Update main_app.py

Browse files
Files changed (1) hide show
  1. main_app.py +6 -3
main_app.py CHANGED
@@ -566,10 +566,13 @@ def _(
566
  ):
567
  if selection_table.value['ID'].iloc[0]:
568
  # Create the input fields
569
- if template_variant.value == "Stream Files to IBM COS [Example]":
570
- fnc_nm = "stream_file_to_cos"
571
  else:
572
- fnc_nm = "your_function_name"
 
 
 
573
 
574
  uploaded_function_name = mo.ui.text(placeholder="<Must be the same as the name in editor>", label="Function Name:", kind="text", value=f"{fnc_nm}", full_width=False)
575
  tags_editor = mo.ui.array(
 
566
  ):
567
  if selection_table.value['ID'].iloc[0]:
568
  # Create the input fields
569
+ if function_name:
570
+ fnc_nm = function_name
571
  else:
572
+ if template_variant.value == "Stream Files to IBM COS [Example]":
573
+ fnc_nm = "stream_file_to_cos"
574
+ else:
575
+ fnc_nm = "your_function_name"
576
 
577
  uploaded_function_name = mo.ui.text(placeholder="<Must be the same as the name in editor>", label="Function Name:", kind="text", value=f"{fnc_nm}", full_width=False)
578
  tags_editor = mo.ui.array(