Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -77,8 +77,6 @@ def run_lora(prompt, cfg_scale, steps, randomize_seed, seed, width, height, lora
|
|
77 |
|
78 |
image.save(image_path, pnginfo=metadata)
|
79 |
|
80 |
-
print ("CWD: " + os.getcwd())
|
81 |
-
print (os.listdir("/"))
|
82 |
|
83 |
# Construct the URL to access the image
|
84 |
space_url = "https://killwithabass-flux-1-dev-lora-androflux.hf.space" # Replace with your actual space URL
|
@@ -88,7 +86,10 @@ def run_lora(prompt, cfg_scale, steps, randomize_seed, seed, width, height, lora
|
|
88 |
try:
|
89 |
if "girl" not in prompt and "woman" not in prompt:
|
90 |
wks.append_table(values=[prompt, cfg_scale, steps, randomize_seed, seed, width, height, lora_scale,image_url])
|
91 |
-
|
|
|
|
|
|
|
92 |
print(f"Image URL: {image_url}") # Log the file URL
|
93 |
|
94 |
# Final update (100%)
|
|
|
77 |
|
78 |
image.save(image_path, pnginfo=metadata)
|
79 |
|
|
|
|
|
80 |
|
81 |
# Construct the URL to access the image
|
82 |
space_url = "https://killwithabass-flux-1-dev-lora-androflux.hf.space" # Replace with your actual space URL
|
|
|
86 |
try:
|
87 |
if "girl" not in prompt and "woman" not in prompt:
|
88 |
wks.append_table(values=[prompt, cfg_scale, steps, randomize_seed, seed, width, height, lora_scale,image_url])
|
89 |
+
|
90 |
+
except Exception as error:
|
91 |
+
# handle the exception
|
92 |
+
print("An exception occurred:", error)
|
93 |
print(f"Image URL: {image_url}") # Log the file URL
|
94 |
|
95 |
# Final update (100%)
|