Spaces:
Sleeping
Sleeping
Commit ·
287a5ea
1
Parent(s): f41d56a
fix table
Browse files
protein_conformal/backend/gradio_interface.py
CHANGED
|
@@ -1080,23 +1080,21 @@ def create_interface():
|
|
| 1080 |
submit_btn = gr.Button("Search", variant="primary")
|
| 1081 |
|
| 1082 |
# Results section
|
|
|
|
| 1083 |
with gr.Row():
|
| 1084 |
-
gr.
|
| 1085 |
-
|
| 1086 |
-
|
| 1087 |
-
|
| 1088 |
-
|
| 1089 |
-
|
| 1090 |
-
|
| 1091 |
-
|
| 1092 |
-
|
| 1093 |
-
|
| 1094 |
-
|
| 1095 |
-
|
| 1096 |
-
|
| 1097 |
-
wrap=True,
|
| 1098 |
-
interactive=True # Enable interactions like sorting
|
| 1099 |
-
)
|
| 1100 |
|
| 1101 |
# Export results
|
| 1102 |
with gr.Accordion("Export Results", open=False):
|
|
|
|
| 1080 |
submit_btn = gr.Button("Search", variant="primary")
|
| 1081 |
|
| 1082 |
# Results section
|
| 1083 |
+
gr.Markdown("## 3. Results")
|
| 1084 |
with gr.Row():
|
| 1085 |
+
with gr.Column():
|
| 1086 |
+
# Conformal prediction summary
|
| 1087 |
+
results_summary = gr.JSON(label="Conformal Prediction Results")
|
| 1088 |
+
|
| 1089 |
+
# Add a DataFrame for displaying results in a tabular format
|
| 1090 |
+
# Note: Headers will be determined by the DataFrame columns
|
| 1091 |
+
# For FASTA lookup: query_seq, query_meta, lookup_seq, D_score, prob_exact, lookup_meta
|
| 1092 |
+
# For TSV lookup: query_seq, query_meta, lookup_seq, D_score, prob_exact, lookup_entry, lookup_pfam, lookup_protein_names
|
| 1093 |
+
results_table = gr.Dataframe(
|
| 1094 |
+
label="Results Table (All Matches - Click Column Headers to Sort)",
|
| 1095 |
+
wrap=True,
|
| 1096 |
+
interactive=True # Enable interactions like sorting
|
| 1097 |
+
)
|
|
|
|
|
|
|
|
|
|
| 1098 |
|
| 1099 |
# Export results
|
| 1100 |
with gr.Accordion("Export Results", open=False):
|