Spaces:
Build error
Build error
Fix reset
Browse files
app.py
CHANGED
@@ -24,6 +24,10 @@ def upload_image(state, image_input):
|
|
24 |
return [state, input_image], state
|
25 |
|
26 |
|
|
|
|
|
|
|
|
|
27 |
def save_image_to_local(image: Image.Image):
|
28 |
# TODO(jykoh): Update so the url path is used, to prevent repeat saving.
|
29 |
filename = next(tempfile._get_candidate_names()) + '.png'
|
|
|
24 |
return [state, input_image], state
|
25 |
|
26 |
|
27 |
+
def reset():
|
28 |
+
return [[], None], []
|
29 |
+
|
30 |
+
|
31 |
def save_image_to_local(image: Image.Image):
|
32 |
# TODO(jykoh): Update so the url path is used, to prevent repeat saving.
|
33 |
filename = next(tempfile._get_candidate_names()) + '.png'
|