Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ def randomize_seed_fn(seed: int, randomize_seed: bool) -> int:
|
|
54 |
return seed
|
55 |
|
56 |
def save_image(img, profile: gr.OAuthProfile | None, metadata: dict):
|
57 |
-
unique_name =
|
58 |
img.save(unique_name)
|
59 |
gr_user_history.save_image(label=metadata["prompt"], image=img, profile=profile, metadata=metadata)
|
60 |
return unique_name
|
|
|
54 |
return seed
|
55 |
|
56 |
def save_image(img, profile: gr.OAuthProfile | None, metadata: dict):
|
57 |
+
unique_name = str(uuid.uuid4()) + '.png'
|
58 |
img.save(unique_name)
|
59 |
gr_user_history.save_image(label=metadata["prompt"], image=img, profile=profile, metadata=metadata)
|
60 |
return unique_name
|