amazinghaha commited on
Commit
b02ccbc
1 Parent(s): 743b1a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -125,7 +125,13 @@ def get_medical_message():
125
  past = ALL_message[Current_name]['past']
126
  now = ALL_message[Current_name]['now']
127
  return past, now
128
-
 
 
 
 
 
 
129
 
130
  class App:
131
  def __init__(self):
@@ -177,7 +183,7 @@ class App:
177
  slider3.change(change_image_slice_x, inputs=slider3, outputs=out3)
178
  slider2.change(change_image_slice_y, inputs=slider2, outputs=out2)
179
  slider1.change(change_image_slice_z, inputs=slider1, outputs=out1)
180
- clear.click(claer_all, None, [out1, out2, out3, out4, out6, out5], queue=False)
181
 
182
  gr.Markdown("Examples")
183
  gr.Examples(
 
125
  past = ALL_message[Current_name]['past']
126
  now = ALL_message[Current_name]['now']
127
  return past, now
128
+
129
+ def clear_all():
130
+ global Image_3D
131
+ global Current_name
132
+ Current_name = None
133
+ Image_3D = None
134
+ return None,None,None,None,None,None
135
 
136
  class App:
137
  def __init__(self):
 
183
  slider3.change(change_image_slice_x, inputs=slider3, outputs=out3)
184
  slider2.change(change_image_slice_y, inputs=slider2, outputs=out2)
185
  slider1.change(change_image_slice_z, inputs=slider1, outputs=out1)
186
+ clear.click(clear_all, None, [out1, out2, out3, out4, out6, out5], queue=False)
187
 
188
  gr.Markdown("Examples")
189
  gr.Examples(