Spaces:
Runtime error
Runtime error
Commit
•
c312a41
1
Parent(s):
b3ccbc7
Update app.py (#6)
Browse files- Update app.py (bd1d511304256fe990ac5a32ec17c487ba9a9317)
Co-authored-by: Lucain Pouget <Wauplin@users.noreply.huggingface.co>
app.py
CHANGED
@@ -47,7 +47,7 @@ def randomize_seed_fn(seed: int, randomize_seed: bool) -> int:
|
|
47 |
def save_image(img, profile: gr.OAuthProfile | None, metadata: dict):
|
48 |
unique_name = str(uuid.uuid4()) + '.png'
|
49 |
img.save(unique_name)
|
50 |
-
gr_user_history.save_image(label=metadata["prompt"], image=
|
51 |
return unique_name
|
52 |
|
53 |
def save_images(image_array, profile: gr.OAuthProfile | None, metadata: dict):
|
|
|
47 |
def save_image(img, profile: gr.OAuthProfile | None, metadata: dict):
|
48 |
unique_name = str(uuid.uuid4()) + '.png'
|
49 |
img.save(unique_name)
|
50 |
+
gr_user_history.save_image(label=metadata["prompt"], image=img, profile=profile, metadata=metadata)
|
51 |
return unique_name
|
52 |
|
53 |
def save_images(image_array, profile: gr.OAuthProfile | None, metadata: dict):
|