Spaces:
Sleeping
Sleeping
amazinghaha
commited on
Commit
•
5d63a36
1
Parent(s):
d9a1752
Update app.py
Browse files
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
|
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)),'','',
|
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 gr.Error("先加载数据")
|
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)),'','',gr.Error(" ")
|
138 |
|
139 |
class App:
|
140 |
def __init__(self):
|