Spaces:
Runtime error
Runtime error
Update app.py
#6
by
Wauplin
HF staff
- opened
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):
|