johndpark commited on
Commit
c85f8cb
·
verified ·
1 Parent(s): 4a5e288

Update app.py

Browse files

State to Number

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -113,7 +113,7 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css) as app:
113
  """<h1><img src="https://huggingface.co/spaces/multimodalart/flux-lora-the-explorer/resolve/main/flux_lora.png" alt="LoRA"> FLUX LoRA the Explorer</h1>""",
114
  elem_id="title",
115
  )
116
- selected_index = gr.State(None)
117
  with gr.Row():
118
  with gr.Column(scale=3):
119
  prompt = gr.Textbox(label="Prompt", lines=1, placeholder="Type a prompt after selecting a LoRA")
 
113
  """<h1><img src="https://huggingface.co/spaces/multimodalart/flux-lora-the-explorer/resolve/main/flux_lora.png" alt="LoRA"> FLUX LoRA the Explorer</h1>""",
114
  elem_id="title",
115
  )
116
+ selected_index = gr.Number(value=0, precision=0, visible=False)
117
  with gr.Row():
118
  with gr.Column(scale=3):
119
  prompt = gr.Textbox(label="Prompt", lines=1, placeholder="Type a prompt after selecting a LoRA")