Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -48,37 +48,52 @@ default_values = {
|
|
48 |
"Select method for which you want to view result": "DSM"
|
49 |
}
|
50 |
|
|
|
|
|
51 |
interface = gr.Interface(
|
52 |
-
fn=
|
53 |
inputs=[
|
54 |
-
gr.
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
gr.
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
],
|
81 |
-
outputs=[gr.File(label="SPM result"), gr.File(label="DSM result"), "dataframe"],
|
82 |
title="SPM And DSM Implementation in Python"
|
83 |
)
|
84 |
|
|
|
48 |
"Select method for which you want to view result": "DSM"
|
49 |
}
|
50 |
|
51 |
+
|
52 |
+
|
53 |
interface = gr.Interface(
|
54 |
+
fn=None,
|
55 |
inputs=[
|
56 |
+
gr.Interface(
|
57 |
+
fn=run_spm,
|
58 |
+
inputs=[
|
59 |
+
gr.File(label="Upload CSV file"),
|
60 |
+
gr.Textbox(label="Identifier Column", value="Identifier"),
|
61 |
+
gr.Textbox(label="Sequence Column", value="Sequence"),
|
62 |
+
gr.Dropdown(label="Sort By", choices=["S-Support", "I-Support"], value="S-Support"),
|
63 |
+
gr.Number(label="Sliding Window Min", value=1),
|
64 |
+
gr.Number(label="Sliding Window Max", value=4),
|
65 |
+
gr.Number(label="Min Gap", value=1),
|
66 |
+
gr.Number(label="Max Gap", value=12),
|
67 |
+
gr.Number(label="S Support Threshold", value=0.4),
|
68 |
+
gr.Number(label="I Support Threshold", value=0),
|
69 |
+
gr.Number(label="Dataset Format", value=0),
|
70 |
+
],
|
71 |
+
outputs=[gr.Textbox(label="SPM Result"), "dataframe"],
|
72 |
+
title="SPM Implementation"
|
73 |
+
),
|
74 |
+
|
75 |
+
gr.Interface(
|
76 |
+
fn=run_dsm,
|
77 |
+
inputs=[
|
78 |
+
gr.File(label="Upload Left Dataset CSV file"),
|
79 |
+
gr.File(label="Upload Right Dataset CSV file"),
|
80 |
+
gr.Textbox(label="Identifier Column", value="Identifier"),
|
81 |
+
gr.Textbox(label="Sequence Column", value="Sequence"),
|
82 |
+
gr.Dropdown(label="Sort By", choices=["S-Support", "I-Support"], value="S-Support"),
|
83 |
+
gr.Number(label="Sliding Window Min", value=1),
|
84 |
+
gr.Number(label="Sliding Window Max", value=1),
|
85 |
+
gr.Number(label="Min Gap", value=1),
|
86 |
+
gr.Number(label="Max Gap", value=12),
|
87 |
+
gr.Number(label="S Support Threshold", value=0.4),
|
88 |
+
gr.Number(label="I Support Threshold", value=0),
|
89 |
+
gr.Number(label="Threshold P-value", value=0.1),
|
90 |
+
gr.Number(label="Dataset Format", value=0),
|
91 |
+
gr.Dropdown(label="Test Type", choices=["poisson_means_test", "ttest_ind", "mannwhitneyu", "bws_test", "ranksums", "brunnermunzel", "mood", "ansari", "cramervonmises_2samp", "epps_singleton_2samp", "ks_2samp", "kstest"], value="ttest_ind"),
|
92 |
+
],
|
93 |
+
outputs=[gr.Textbox(label="DSM Result"), "dataframe"],
|
94 |
+
title="DSM Implementation"
|
95 |
+
)
|
96 |
],
|
|
|
97 |
title="SPM And DSM Implementation in Python"
|
98 |
)
|
99 |
|