Synced repo using 'sync_with_huggingface' Github Action
Browse files- gradio_imager.py +4 -9
gradio_imager.py
CHANGED
@@ -37,7 +37,7 @@ def gradio_interface(image, standard_settings, crop=False, remove_bg=False, resi
|
|
37 |
# Apply standard settings if selected and not "None"
|
38 |
if image is None:
|
39 |
# Load the standard image from the specified path if no image is uploaded
|
40 |
-
standard_image_path = '
|
41 |
image = Image.open(standard_image_path)
|
42 |
|
43 |
if standard_settings and standard_settings != "None":
|
@@ -68,14 +68,9 @@ def gradio_interface(image, standard_settings, crop=False, remove_bg=False, resi
|
|
68 |
|
69 |
|
70 |
example_images = [
|
71 |
-
[
|
72 |
-
|
73 |
-
[
|
74 |
-
"depositphotos_520707962-stock-photo-fujifilm-s10-body-black-fujifilm.jpg"), "None", True, True, "480x320", 48, "blue"],
|
75 |
-
[os.path.join("data", "examples", "batman_b_c_320x280_bg.png"),
|
76 |
-
"None", True, True, "360x360", 48, "yellow"],
|
77 |
-
|
78 |
-
|
79 |
]
|
80 |
|
81 |
# Define the Gradio interface
|
|
|
37 |
# Apply standard settings if selected and not "None"
|
38 |
if image is None:
|
39 |
# Load the standard image from the specified path if no image is uploaded
|
40 |
+
standard_image_path = 'https://f.uguu.se/FMSiaqYp.png'
|
41 |
image = Image.open(standard_image_path)
|
42 |
|
43 |
if standard_settings and standard_settings != "None":
|
|
|
68 |
|
69 |
|
70 |
example_images = [
|
71 |
+
["https://f.uguu.se/FMSiaqYp.png", "S light", True, True, "480x420", 10, "whitesmoke"],
|
72 |
+
["https://f.uguu.se/RKKYgeDC.png", "None", True, True, "480x320", 48, "blue"],
|
73 |
+
["https://f.uguu.se/WMoKEkYc.png", "None", True, True, "360x360", 48, "yellow"],
|
|
|
|
|
|
|
|
|
|
|
74 |
]
|
75 |
|
76 |
# Define the Gradio interface
|