Spaces:
Runtime error
Runtime error
Commit
•
7468a41
1
Parent(s):
083c46e
fix examples
Browse files
app.py
CHANGED
@@ -197,8 +197,8 @@ def get_example():
|
|
197 |
[
|
198 |
'examples/lemons_input.jpg',
|
199 |
# '',
|
200 |
-
'a ceramic bowl',
|
201 |
'apples', 'lemons',
|
|
|
202 |
'examples/lemons_output.jpg',
|
203 |
|
204 |
|
@@ -213,8 +213,8 @@ def get_example():
|
|
213 |
[
|
214 |
'examples/girl_with_pearl_earring_input.png',
|
215 |
# '',
|
216 |
-
'',
|
217 |
'glasses', '',
|
|
|
218 |
'examples/girl_with_pearl_earring_output.png',
|
219 |
|
220 |
|
@@ -229,8 +229,8 @@ def get_example():
|
|
229 |
[
|
230 |
'examples/rockey_shore_input.jpg',
|
231 |
# '',
|
232 |
-
'watercolor painting',
|
233 |
'sea turtle', '',
|
|
|
234 |
'examples/rockey_shore_output.jpg',
|
235 |
|
236 |
|
@@ -244,8 +244,8 @@ def get_example():
|
|
244 |
[
|
245 |
'examples/flower_field_input.jpg',
|
246 |
# '',
|
247 |
-
'oil painting',
|
248 |
'wheat', 'red flowers',
|
|
|
249 |
'examples/flower_field_output_2.jpg',
|
250 |
|
251 |
|
@@ -260,8 +260,8 @@ def get_example():
|
|
260 |
[
|
261 |
'examples/butterfly_input.jpg',
|
262 |
# '',
|
263 |
-
'oil painting',
|
264 |
'bee', 'butterfly',
|
|
|
265 |
'examples/butterfly_output.jpg',
|
266 |
7, 7,
|
267 |
1,1,
|
@@ -273,6 +273,7 @@ def get_example():
|
|
273 |
]
|
274 |
return case
|
275 |
|
|
|
276 |
def swap_visibilities(input_image,
|
277 |
edit_concept_1,
|
278 |
edit_concept_2,
|
|
|
197 |
[
|
198 |
'examples/lemons_input.jpg',
|
199 |
# '',
|
|
|
200 |
'apples', 'lemons',
|
201 |
+
'a ceramic bowl',
|
202 |
'examples/lemons_output.jpg',
|
203 |
|
204 |
|
|
|
213 |
[
|
214 |
'examples/girl_with_pearl_earring_input.png',
|
215 |
# '',
|
|
|
216 |
'glasses', '',
|
217 |
+
'',
|
218 |
'examples/girl_with_pearl_earring_output.png',
|
219 |
|
220 |
|
|
|
229 |
[
|
230 |
'examples/rockey_shore_input.jpg',
|
231 |
# '',
|
|
|
232 |
'sea turtle', '',
|
233 |
+
'watercolor painting',
|
234 |
'examples/rockey_shore_output.jpg',
|
235 |
|
236 |
|
|
|
244 |
[
|
245 |
'examples/flower_field_input.jpg',
|
246 |
# '',
|
|
|
247 |
'wheat', 'red flowers',
|
248 |
+
'oil painting',
|
249 |
'examples/flower_field_output_2.jpg',
|
250 |
|
251 |
|
|
|
260 |
[
|
261 |
'examples/butterfly_input.jpg',
|
262 |
# '',
|
|
|
263 |
'bee', 'butterfly',
|
264 |
+
'oil painting',
|
265 |
'examples/butterfly_output.jpg',
|
266 |
7, 7,
|
267 |
1,1,
|
|
|
273 |
]
|
274 |
return case
|
275 |
|
276 |
+
|
277 |
def swap_visibilities(input_image,
|
278 |
edit_concept_1,
|
279 |
edit_concept_2,
|