Update app.py
Browse files
app.py
CHANGED
@@ -515,7 +515,7 @@ def run_lora(prompt, cfg_scale, steps, selected_info_1, selected_info_2, selecte
|
|
515 |
print("Prompt Mash: ", prompt_mash) # Debugging statement
|
516 |
|
517 |
# Ensure valid width and height values
|
518 |
-
if width is None:
|
519 |
width = 1024 # Default value
|
520 |
if height is None:
|
521 |
height = 1024 # Default value
|
@@ -590,6 +590,7 @@ def run_lora(prompt, cfg_scale, steps, selected_info_1, selected_info_2, selecte
|
|
590 |
|
591 |
run_lora.zerogpu = True
|
592 |
|
|
|
593 |
def get_huggingface_safetensors(link):
|
594 |
split_link = link.split("/")
|
595 |
if len(split_link) == 4:
|
|
|
515 |
print("Prompt Mash: ", prompt_mash) # Debugging statement
|
516 |
|
517 |
# Ensure valid width and height values
|
518 |
+
if width is None or isinstance(width, gr.Progress): # Check for Gradio Progress object
|
519 |
width = 1024 # Default value
|
520 |
if height is None:
|
521 |
height = 1024 # Default value
|
|
|
590 |
|
591 |
run_lora.zerogpu = True
|
592 |
|
593 |
+
|
594 |
def get_huggingface_safetensors(link):
|
595 |
split_link = link.split("/")
|
596 |
if len(split_link) == 4:
|