Spaces:
Running
on
Zero
Running
on
Zero
killwithabass
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -87,7 +87,7 @@ def generate_image(prompt, trigger_word, steps, seed, cfg_scale, width, height,
|
|
87 |
# Save the image to a file with a unique name in /tmp directory
|
88 |
timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
|
89 |
image_filename = f"generated_image_{timestamp}.png"
|
90 |
-
image_path = os.path.join("
|
91 |
print (os.path.realpath(image_path))
|
92 |
|
93 |
# Add Metadata
|
@@ -98,7 +98,8 @@ def generate_image(prompt, trigger_word, steps, seed, cfg_scale, width, height,
|
|
98 |
#image.save(image_path, pnginfo=metadata)
|
99 |
|
100 |
# Construct the URL to access the image
|
101 |
-
|
|
|
102 |
image_url = f"{space_url}/file={image_path}"
|
103 |
|
104 |
#Log queries
|
|
|
87 |
# Save the image to a file with a unique name in /tmp directory
|
88 |
timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
|
89 |
image_filename = f"generated_image_{timestamp}.png"
|
90 |
+
image_path = os.path.join("./tmp/gradio", image_filename)
|
91 |
print (os.path.realpath(image_path))
|
92 |
|
93 |
# Add Metadata
|
|
|
98 |
#image.save(image_path, pnginfo=metadata)
|
99 |
|
100 |
# Construct the URL to access the image
|
101 |
+
|
102 |
+
space_url = "https://killwithabass-flux-gay-lora-explorer.hf.space/"
|
103 |
image_url = f"{space_url}/file={image_path}"
|
104 |
|
105 |
#Log queries
|