Sebastiankay commited on
Commit
ee12427
1 Parent(s): 2735b22

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -244,14 +244,7 @@ with gr.Blocks(theme=theme, head=custom_head, css=custom_css, js=custom_js, titl
244
  with gr.Row(elem_classes="image_size_selctor_wrapper"):
245
  with gr.Column(scale=1):
246
  with gr.Row():
247
- inference_models, select_model = get_inference_models()
248
- # inference_models = ["FLUX-API-OLD"]
249
- # selected_model = "FLUX-API-OLD"
250
- # models_new_api = ["FLUX", "FLUX-Realism", "FLUX-Pixel", "FLUX-Anime", "FLUX-3D", "FLUX-Disney", "ANY-DARK", "Stable-Diffusion-XL-Base", "Stable-Diffusion-XL-Lightning"]
251
- # if check_api(API_V1_IMAGE) == 200:
252
- # selected_model = "FLUX"
253
- # for model in models_new_api:
254
- # inference_models.append(model)
255
  select_model = gr.Dropdown(choices=inference_models, value=selected_model, label="Model", elem_id="select_model", elem_classes="select-model")
256
  # with gr.Row():
257
  image_width = gr.Number(label="Breite", minimum=256, maximum=MAX_IMAGE_SIZE, value=576, step=32, elem_id="image_width_selector", elem_classes="image-width-selector", scale=1, visible=False)
 
244
  with gr.Row(elem_classes="image_size_selctor_wrapper"):
245
  with gr.Column(scale=1):
246
  with gr.Row():
247
+ inference_models, selected_model = get_inference_models()
 
 
 
 
 
 
 
248
  select_model = gr.Dropdown(choices=inference_models, value=selected_model, label="Model", elem_id="select_model", elem_classes="select-model")
249
  # with gr.Row():
250
  image_width = gr.Number(label="Breite", minimum=256, maximum=MAX_IMAGE_SIZE, value=576, step=32, elem_id="image_width_selector", elem_classes="image-width-selector", scale=1, visible=False)