amazinghaha commited on
Commit
a8013bd
1 Parent(s): 5d63a36

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -69,7 +69,7 @@ def inference():
69
  n = float(np.round(1-p, decimals=2))
70
  return {'急性期': n, '亚急性期': p}
71
  except:
72
- return gr.Error("先加载数据")
73
 
74
 
75
 
@@ -134,7 +134,7 @@ def clear_all():
134
  global Current_name
135
  Current_name = None
136
  Image_3D = None
137
- return np.ones((10,10)),np.ones((10,10)),np.ones((10,10)),'','',gr.Error(" ")
138
 
139
  class App:
140
  def __init__(self):
 
69
  n = float(np.round(1-p, decimals=2))
70
  return {'急性期': n, '亚急性期': p}
71
  except:
72
+ return ' '
73
 
74
 
75
 
 
134
  global Current_name
135
  Current_name = None
136
  Image_3D = None
137
+ return np.ones((10,10)),np.ones((10,10)),np.ones((10,10)),'','',' '
138
 
139
  class App:
140
  def __init__(self):