RageshAntony commited on
Commit
3ddc74e
·
verified ·
1 Parent(s): 3295353
Files changed (1) hide show
  1. check_app.py +3 -2
check_app.py CHANGED
@@ -212,8 +212,7 @@ def create_pipeline_logic(prompt_text, model_name, negative_prompt="", seed=42,
212
  )
213
  return f"Seed: {gen_seed}", image
214
  def main():
215
- if gallery is None:
216
- initialize_components()
217
  with gr.Blocks() as app:
218
  gr.Markdown("# Dynamic Multiple Model Image Generation")
219
 
@@ -323,4 +322,6 @@ def load_images_from_directory(directory_path):
323
  return image_files, f"Found {len(image_files)} images"
324
 
325
  if __name__ == "__main__":
 
 
326
  main()
 
212
  )
213
  return f"Seed: {gen_seed}", image
214
  def main():
215
+
 
216
  with gr.Blocks() as app:
217
  gr.Markdown("# Dynamic Multiple Model Image Generation")
218
 
 
322
  return image_files, f"Found {len(image_files)} images"
323
 
324
  if __name__ == "__main__":
325
+ if gallery is None:
326
+ initialize_components()
327
  main()