Spaces:
Runtime error
Runtime error
fix case where prompts end in semicolon
Browse files117 unmodified lines118119120121122123124117 unmodified linesusers = [] # adds the user to the label# Split the prompts string into individual prompts based on semicolon separationprompts_list = prompts.split(';')for entry in prompts_list:entry_parts = entry.split('-', 1) # Split by the first dash found117 unmodified lines118119120121122123124117 unmodified linesusers = [] # adds the user to the label# Split the prompts string into individual prompts based on semicolon separationprompts_list = [prompt for prompt in prompts.split(';') if prompt]for entry in prompts_list:entry_parts = entry.split('-', 1) # Split by the first dash found
app.py+1-1