Spaces:
Running
Running
feat: Fix selected space loading in app.py
Browse filesThis 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.
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[
|
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():
|