yeq6x commited on
Commit
b6e1d5b
·
1 Parent(s): 1573e37

Add hidden state components in app.py to facilitate data passing between stages, enhancing the application's state management.

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -227,6 +227,15 @@ with gr.Blocks(css=css) as demo:
227
  <h3 style="color: #5b47d1;">Anime Character Converter with Combined LoRAs</h3>
228
  </div>
229
  """)
 
 
 
 
 
 
 
 
 
230
  with gr.Row():
231
  with gr.Column(scale=1):
232
  gr.Markdown("### 📥 Input")
 
227
  <h3 style="color: #5b47d1;">Anime Character Converter with Combined LoRAs</h3>
228
  </div>
229
  """)
230
+
231
+ # Hidden state components to pass data between stages
232
+ state_image = gr.State()
233
+ state_seed = gr.State()
234
+ state_guidance = gr.State()
235
+ state_steps = gr.State()
236
+ state_height = gr.State()
237
+ state_width = gr.State()
238
+
239
  with gr.Row():
240
  with gr.Column(scale=1):
241
  gr.Markdown("### 📥 Input")