charliebaby2023 commited on
Commit
282d6e3
·
verified ·
1 Parent(s): c1ccf5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -52,11 +52,11 @@ load_fn(default_models,HF_TOKEN)
52
 
53
 
54
  with gr.Blocks(fill_width=True) as demo:
55
- with gr.Accordion('Model selection'):
56
- model_choice = gr.CheckboxGroup(models, label = f'Choose up to {int(num_models)} different models from the {len(models)} available!', value=default_models, interactive=True)
57
- model_choice.change(update_imgbox, model_choice, output)
58
- model_choice.change(extend_choices, model_choice, current_models)
59
- random_button.click(random_choices, None, model_choice)
60
  with gr.Tab(str(num_models) + ' Models'):
61
  with gr.Column(scale=2):
62
  with gr.Group():
 
52
 
53
 
54
  with gr.Blocks(fill_width=True) as demo:
55
+ with gr.Row():
56
+ gr.Markdown(f"# ({username}) you are logged in")
57
+ model_selector = gr.CheckboxGroup(choices=model_ids,value=model_ids, label="your models", interactive=True, )
58
+ output_box = gr.Textbox(lines=10, label="Selected Models")
59
+ model_selector.change(fn=handle_model_selection, inputs=model_selector, outputs=output_box)
60
  with gr.Tab(str(num_models) + ' Models'):
61
  with gr.Column(scale=2):
62
  with gr.Group():