added input file type filter
Browse files
app.py
CHANGED
@@ -80,10 +80,16 @@ def runner(in_pdb, model_type):
|
|
80 |
|
81 |
|
82 |
with gr.Blocks() as app:
|
83 |
-
gr.Markdown(
|
|
|
|
|
84 |
with gr.Row():
|
85 |
with gr.Column():
|
86 |
-
input_pdb = gr.File(
|
|
|
|
|
|
|
|
|
87 |
model_type = gr.Radio(
|
88 |
[
|
89 |
"CalphaBasedModel",
|
@@ -141,7 +147,9 @@ with gr.Blocks() as app:
|
|
141 |
button.click(fn=runner, inputs=[input_pdb, model_type], outputs=[output_pdb, viewer])
|
142 |
#
|
143 |
gr.Markdown("---")
|
144 |
-
gr.Markdown(
|
|
|
|
|
145 |
gr.Markdown("### Local installation: `pip install git+http://github.com/huhlim/cg2all`")
|
146 |
gr.Markdown("### Supported coarse-grained models")
|
147 |
gr.Markdown("- CalphaBasedModel: CA-trace")
|
|
|
80 |
|
81 |
|
82 |
with gr.Blocks() as app:
|
83 |
+
gr.Markdown(
|
84 |
+
"# cg2all: conversion of coarse-grained protein structure model to all-atom structure"
|
85 |
+
)
|
86 |
with gr.Row():
|
87 |
with gr.Column():
|
88 |
+
input_pdb = gr.File(
|
89 |
+
file_count="single",
|
90 |
+
label="Input CG structure",
|
91 |
+
file_types=[".pdb", ".PDB", ".txt", ".TXT"],
|
92 |
+
)
|
93 |
model_type = gr.Radio(
|
94 |
[
|
95 |
"CalphaBasedModel",
|
|
|
147 |
button.click(fn=runner, inputs=[input_pdb, model_type], outputs=[output_pdb, viewer])
|
148 |
#
|
149 |
gr.Markdown("---")
|
150 |
+
gr.Markdown(
|
151 |
+
"### GitHub repository: [https://github.com/huhlim/cg2all](https://github.com/huhlim/cg2all)"
|
152 |
+
)
|
153 |
gr.Markdown("### Local installation: `pip install git+http://github.com/huhlim/cg2all`")
|
154 |
gr.Markdown("### Supported coarse-grained models")
|
155 |
gr.Markdown("- CalphaBasedModel: CA-trace")
|