Spaces:
Paused
Paused
igashov commited on
Commit ·
e341000
1
Parent(s): 6727921
examples
Browse files
app.py
CHANGED
|
@@ -165,9 +165,7 @@ with demo:
|
|
| 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 |
-
run_on_click=True,
|
| 171 |
)
|
| 172 |
button = gr.Button('Generate Linker!')
|
| 173 |
gr.Markdown('')
|
|
@@ -177,6 +175,10 @@ with demo:
|
|
| 177 |
with gr.Column():
|
| 178 |
visualization = gr.HTML()
|
| 179 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 180 |
input_file.change(
|
| 181 |
fn=show_input,
|
| 182 |
inputs=[input_file],
|
|
|
|
| 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 |
)
|
| 170 |
button = gr.Button('Generate Linker!')
|
| 171 |
gr.Markdown('')
|
|
|
|
| 175 |
with gr.Column():
|
| 176 |
visualization = gr.HTML()
|
| 177 |
|
| 178 |
+
examples.outputs = [visualization]
|
| 179 |
+
examples.fn = show_input
|
| 180 |
+
examples.run_on_click = True
|
| 181 |
+
|
| 182 |
input_file.change(
|
| 183 |
fn=show_input,
|
| 184 |
inputs=[input_file],
|