Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -46,12 +46,37 @@ def dsm_fn(DSM_path_to_csv_left, DSM_path_to_csv_right, DSM_identifier_column, D
|
|
46 |
dsm_result.to_csv("dsm_result.csv")
|
47 |
return "dsm_result.csv",dsm_result
|
48 |
|
49 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
|
51 |
|
52 |
|
53 |
def demo():
|
54 |
-
with gr.Blocks(theme=
|
55 |
|
56 |
gr.Markdown(
|
57 |
"""<center><h2>SPM and DSM Implementation in Python</center></h2>
|
@@ -130,6 +155,6 @@ def demo():
|
|
130 |
inputs=[dsm_left_file, dsm_right_file, identifier_column_dsm, sequence_column_dsm, sortby_dsm, sliding_window_min_dsm, sliding_window_max_dsm, min_gap_dsm, max_gap_dsm, S_support_thresh_dsm, I_support_thresh_dsm, threshold_pvalue, dataset_format_dsm, test_type], \
|
131 |
outputs=[dsm_result,dsm_dataframe])
|
132 |
demo.queue().launch(debug=True)
|
133 |
-
gr.themes.builder()
|
134 |
if __name__ == "__main__":
|
135 |
demo()
|
|
|
46 |
dsm_result.to_csv("dsm_result.csv")
|
47 |
return "dsm_result.csv",dsm_result
|
48 |
|
49 |
+
theme = gr.themes.Base(
|
50 |
+
primary_hue="gray",
|
51 |
+
secondary_hue="orange",
|
52 |
+
text_size="text_lg",
|
53 |
+
).set(
|
54 |
+
body_background_fill='*primary_200',
|
55 |
+
body_background_fill_dark='*primary_950',
|
56 |
+
body_text_color_dark='*primary_100',
|
57 |
+
body_text_weight='500',
|
58 |
+
embed_radius='*radius_xxl',
|
59 |
+
background_fill_primary='*neutral_400',
|
60 |
+
background_fill_primary_dark='*secondary_800',
|
61 |
+
background_fill_secondary_dark='*primary_200',
|
62 |
+
border_color_accent='*secondary_800',
|
63 |
+
border_color_accent_dark='*secondary_950',
|
64 |
+
border_color_primary='*primary_950',
|
65 |
+
color_accent_soft_dark='*neutral_500',
|
66 |
+
link_text_color='*neutral_900',
|
67 |
+
link_text_color_dark='*primary_200',
|
68 |
+
code_background_fill='*secondary_200',
|
69 |
+
block_background_fill='*body_background_fill',
|
70 |
+
button_border_width='*block_label_border_width',
|
71 |
+
button_primary_text_color_dark='*primary_300',
|
72 |
+
button_secondary_text_color_dark='*table_odd_background_fill',
|
73 |
+
button_secondary_text_color_hover='*button_secondary_background_fill'
|
74 |
+
)
|
75 |
|
76 |
|
77 |
|
78 |
def demo():
|
79 |
+
with gr.Blocks(theme=theme) as demo:
|
80 |
|
81 |
gr.Markdown(
|
82 |
"""<center><h2>SPM and DSM Implementation in Python</center></h2>
|
|
|
155 |
inputs=[dsm_left_file, dsm_right_file, identifier_column_dsm, sequence_column_dsm, sortby_dsm, sliding_window_min_dsm, sliding_window_max_dsm, min_gap_dsm, max_gap_dsm, S_support_thresh_dsm, I_support_thresh_dsm, threshold_pvalue, dataset_format_dsm, test_type], \
|
156 |
outputs=[dsm_result,dsm_dataframe])
|
157 |
demo.queue().launch(debug=True)
|
158 |
+
#gr.themes.builder()
|
159 |
if __name__ == "__main__":
|
160 |
demo()
|