paragon-analytics
commited on
Commit
•
c78f4ac
1
Parent(s):
55ecc4c
Update app.py
Browse files
app.py
CHANGED
@@ -33,9 +33,9 @@ def med_score(x):
|
|
33 |
return score_1
|
34 |
|
35 |
def sym_score(x):
|
36 |
-
|
37 |
-
|
38 |
-
return
|
39 |
|
40 |
##
|
41 |
|
@@ -70,8 +70,10 @@ with gr.Blocks(title=title) as demo:
|
|
70 |
submit_btn = gr.Button("Analyze")
|
71 |
|
72 |
with gr.Row():
|
73 |
-
|
74 |
-
|
|
|
|
|
75 |
|
76 |
with gr.Column(visible=True) as output_col:
|
77 |
med = gr.Label(label = "Contains Medication")
|
|
|
33 |
return score_1
|
34 |
|
35 |
def sym_score(x):
|
36 |
+
label2sym= x['label']
|
37 |
+
score_1sym = x['score']
|
38 |
+
return score_1sym
|
39 |
|
40 |
##
|
41 |
|
|
|
70 |
submit_btn = gr.Button("Analyze")
|
71 |
|
72 |
with gr.Row():
|
73 |
+
|
74 |
+
with gr.Column(visible=True) as output_col:
|
75 |
+
label = gr.Label(label = "Predicted Label")
|
76 |
+
local_plot = gr.HTML(label = 'Shap:')
|
77 |
|
78 |
with gr.Column(visible=True) as output_col:
|
79 |
med = gr.Label(label = "Contains Medication")
|