Spaces:
Running
Running
roni
commited on
Commit
·
cdbbabd
1
Parent(s):
27e2770
added title
Browse files
app.py
CHANGED
|
@@ -25,12 +25,16 @@ def limit_n_results(n):
|
|
| 25 |
|
| 26 |
|
| 27 |
with gr.Blocks() as demo:
|
| 28 |
-
with gr.
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
demo.launch()
|
|
|
|
| 25 |
|
| 26 |
|
| 27 |
with gr.Blocks() as demo:
|
| 28 |
+
with gr.Column():
|
| 29 |
+
gr.Markdown("""
|
| 30 |
+
# Sequence Based Protein Binding Search Engine
|
| 31 |
+
""")
|
| 32 |
+
with gr.Row():
|
| 33 |
+
with gr.Column():
|
| 34 |
+
seq_input = gr.Textbox("KFLIYQMECSTMIFGL", label="Input Sequence")
|
| 35 |
+
n_results = gr.Number(5, label="N Results")
|
| 36 |
+
search_button = gr.Button("Search")
|
| 37 |
+
output = gr.Label(num_top_classes=20, label="Search Results")
|
| 38 |
+
search_button.click(search, inputs=[seq_input, n_results], outputs=output)
|
| 39 |
|
| 40 |
demo.launch()
|