eyal.benaroche commited on
Commit
7d541c4
1 Parent(s): 40d6202

clear prints and messages

Browse files
Files changed (1) hide show
  1. app.py +0 -7
app.py CHANGED
@@ -65,14 +65,9 @@ def infer(
65
  ):
66
  flash_sdxl_id = "jasperai/flash-sdxl"
67
 
68
- gr.Info("Checking LoRA")
69
-
70
  new_adapter_id = user_lora_selector.replace("/", "_")
71
  loaded_adapters = pipe.get_list_adapters()
72
 
73
- print(loaded_adapters["unet"])
74
- print(new_adapter_id)
75
-
76
  if new_adapter_id not in loaded_adapters["unet"]:
77
  gr.Info("Swapping LoRA")
78
  pipe.unload_lora_weights()
@@ -90,8 +85,6 @@ def infer(
90
  if pre_prompt != "":
91
  prompt = f"{pre_prompt} {prompt}"
92
 
93
- gr.Info("Generation Stage")
94
-
95
  image = pipe(
96
  prompt=prompt,
97
  negative_prompt=negative_prompt,
 
65
  ):
66
  flash_sdxl_id = "jasperai/flash-sdxl"
67
 
 
 
68
  new_adapter_id = user_lora_selector.replace("/", "_")
69
  loaded_adapters = pipe.get_list_adapters()
70
 
 
 
 
71
  if new_adapter_id not in loaded_adapters["unet"]:
72
  gr.Info("Swapping LoRA")
73
  pipe.unload_lora_weights()
 
85
  if pre_prompt != "":
86
  prompt = f"{pre_prompt} {prompt}"
87
 
 
 
88
  image = pipe(
89
  prompt=prompt,
90
  negative_prompt=negative_prompt,