Lisandro commited on
Commit
732d815
·
1 Parent(s): 3c623a5

feat: Fix selected space loading in app.py

Browse files

This commit fixes the loading of the selected space in the `infer` function of `app.py`. The code now attempts to load the next available space from the list of spaces until a successful load is achieved, ensuring proper model loading and preventing errors during inference.

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -78,7 +78,7 @@ with gr.Blocks(css=css) as demo:
78
  """)
79
  space = gr.Text(
80
  label="HF Space",
81
- value=flux_1_schell_spaces[selected_space_index]
82
  )
83
 
84
  with gr.Row():
 
78
  """)
79
  space = gr.Text(
80
  label="HF Space",
81
+ value=flux_1_schell_spaces[0]
82
  )
83
 
84
  with gr.Row():