Spaces:
Running
on
T4
Running
on
T4
chore: ui updates
Browse files
app.py
CHANGED
@@ -344,7 +344,7 @@ def apply_new_res(w, h, state):
|
|
344 |
def detect_text(text, state, width, height):
|
345 |
|
346 |
if text is None or text == "":
|
347 |
-
return None, None, None, None
|
348 |
|
349 |
t = text.split(",")
|
350 |
new_state = {}
|
@@ -385,7 +385,7 @@ def resize(img, w, h):
|
|
385 |
|
386 |
def switch_canvas(entry, state, width, height):
|
387 |
if entry == None:
|
388 |
-
return None, 0.5, create_mixed_img("", state, width, height)
|
389 |
|
390 |
return (
|
391 |
gr.update(value=None, interactive=True),
|
|
|
344 |
def detect_text(text, state, width, height):
|
345 |
|
346 |
if text is None or text == "":
|
347 |
+
return None, None, gr.Radio.update(value=None), None
|
348 |
|
349 |
t = text.split(",")
|
350 |
new_state = {}
|
|
|
385 |
|
386 |
def switch_canvas(entry, state, width, height):
|
387 |
if entry == None:
|
388 |
+
return None, 0.5, False, create_mixed_img("", state, width, height)
|
389 |
|
390 |
return (
|
391 |
gr.update(value=None, interactive=True),
|