Spaces:
Runtime error
Runtime error
igashov
commited on
Commit
·
ce8384d
1
Parent(s):
865e932
examples
Browse files
app.py
CHANGED
@@ -162,18 +162,7 @@ with demo:
|
|
162 |
with gr.Column():
|
163 |
gr.Markdown('## Input Fragments')
|
164 |
gr.Markdown('Upload the file with 3D-coordinates of the input fragments in .pdb, .mol2 or .sdf format:')
|
165 |
-
input_file = gr.File(
|
166 |
-
value='examples/example_1.sdf',
|
167 |
-
file_count='single',
|
168 |
-
label='Input Fragments'
|
169 |
-
)
|
170 |
-
# examples = gr.Examples(
|
171 |
-
# examples=[['examples/example_1.sdf'], ['examples/example_2.sdf']],
|
172 |
-
# inputs=[input_file],
|
173 |
-
# outputs=[visualization],
|
174 |
-
# fn=show_input,
|
175 |
-
# run_on_click=True,
|
176 |
-
# )
|
177 |
button = gr.Button('Generate Linker!')
|
178 |
gr.Markdown('')
|
179 |
gr.Markdown('## Output Files')
|
@@ -182,6 +171,13 @@ with demo:
|
|
182 |
with gr.Column():
|
183 |
visualization = gr.HTML()
|
184 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
185 |
input_file.change(
|
186 |
fn=show_input,
|
187 |
inputs=[input_file],
|
|
|
162 |
with gr.Column():
|
163 |
gr.Markdown('## Input Fragments')
|
164 |
gr.Markdown('Upload the file with 3D-coordinates of the input fragments in .pdb, .mol2 or .sdf format:')
|
165 |
+
input_file = gr.File(file_count='single', label='Input Fragments')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
button = gr.Button('Generate Linker!')
|
167 |
gr.Markdown('')
|
168 |
gr.Markdown('## Output Files')
|
|
|
171 |
with gr.Column():
|
172 |
visualization = gr.HTML()
|
173 |
|
174 |
+
examples = gr.Examples(
|
175 |
+
examples=[['examples/example_1.sdf'], ['examples/example_2.sdf']],
|
176 |
+
inputs=[input_file],
|
177 |
+
outputs=[visualization],
|
178 |
+
fn=show_input,
|
179 |
+
run_on_click=True,
|
180 |
+
)
|
181 |
input_file.change(
|
182 |
fn=show_input,
|
183 |
inputs=[input_file],
|