mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-01-27 12:33:17 +01:00
Fix the gallery extension (#6656)
This commit is contained in:
parent
a0492ce325
commit
ed16374ece
@ -93,10 +93,11 @@ def generate_html():
|
||||
|
||||
def filter_cards(filter_str=''):
|
||||
if filter_str == '':
|
||||
return cards
|
||||
return gr.Dataset(samples=cards)
|
||||
|
||||
filter_upper = filter_str.upper()
|
||||
return [k for k in cards if filter_upper in k[1].upper()]
|
||||
filtered = [k for k in cards if filter_upper in k[1].upper()]
|
||||
return gr.Dataset(samples=filtered)
|
||||
|
||||
|
||||
def select_character(evt: gr.SelectData):
|
||||
|
Loading…
Reference in New Issue
Block a user