Spaces:
Sleeping
Sleeping
igashov
commited on
Commit
·
752c84b
1
Parent(s):
8d6141b
examples
Browse files
app.py
CHANGED
@@ -163,9 +163,10 @@ with demo:
|
|
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 |
-
gr.Examples(
|
167 |
examples=['examples/example_1.sdf', 'examples/example_2.sdf'],
|
168 |
inputs=input_file,
|
|
|
169 |
)
|
170 |
button = gr.Button('Generate Linker!')
|
171 |
gr.Markdown('')
|
@@ -175,6 +176,7 @@ with demo:
|
|
175 |
with gr.Column():
|
176 |
visualization = gr.HTML()
|
177 |
|
|
|
178 |
input_file.change(
|
179 |
fn=show_input,
|
180 |
inputs=[input_file],
|
|
|
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 |
+
examples = gr.Examples(
|
167 |
examples=['examples/example_1.sdf', 'examples/example_2.sdf'],
|
168 |
inputs=input_file,
|
169 |
+
fn=show_input,
|
170 |
)
|
171 |
button = gr.Button('Generate Linker!')
|
172 |
gr.Markdown('')
|
|
|
176 |
with gr.Column():
|
177 |
visualization = gr.HTML()
|
178 |
|
179 |
+
examples.outputs = visualization
|
180 |
input_file.change(
|
181 |
fn=show_input,
|
182 |
inputs=[input_file],
|