igashov commited on
Commit
6c034b2
1 Parent(s): c104a99

Fix gradio issue

Browse files
Files changed (1) hide show
  1. app.py +4 -10
app.py CHANGED
@@ -507,15 +507,9 @@ with demo:
507
  with gr.Column():
508
  gr.Markdown('## Input')
509
  gr.Markdown('Upload the file with 3D-coordinates of the input fragments in .pdb, .mol2 or .sdf format:')
510
- with gr.Column():
511
- input_fragments_file = gr.File(
512
- file_count='single',
513
- label='Input Fragments',
514
- file_types=['.sdf', '.pdb', '.mol', '.mol2']
515
- )
516
- # gr.Markdown('(Optionally) upload the file of the target protein in .pdb format:')
517
- with gr.Column():
518
- input_protein_file = gr.File(file_count='single', label='Target Protein', file_types=['.pdb'])
519
 
520
  n_steps = gr.Slider(minimum=50, maximum=500, label="Number of Denoising Steps", step=10)
521
  n_atoms = gr.Slider(
@@ -531,7 +525,7 @@ with demo:
531
  ['examples/3hz1_fragments.sdf', 'examples/3hz1_protein.pdb'],
532
  ['examples/5ou2_fragments.sdf', 'examples/5ou2_protein.pdb'],
533
  ],
534
- headers=['Fragments', 'Target Protein'],
535
  type='values',
536
  )
537
 
 
507
  with gr.Column():
508
  gr.Markdown('## Input')
509
  gr.Markdown('Upload the file with 3D-coordinates of the input fragments in .pdb, .mol2 or .sdf format:')
510
+ input_fragments_file = gr.File(file_count='single', label='Input Fragments')
511
+ gr.Markdown('(Optionally) upload the file of the target protein in .pdb format:')
512
+ input_protein_file = gr.File(file_count='single', label='Target Protein')
 
 
 
 
 
 
513
 
514
  n_steps = gr.Slider(minimum=50, maximum=500, label="Number of Denoising Steps", step=10)
515
  n_atoms = gr.Slider(
 
525
  ['examples/3hz1_fragments.sdf', 'examples/3hz1_protein.pdb'],
526
  ['examples/5ou2_fragments.sdf', 'examples/5ou2_protein.pdb'],
527
  ],
528
+ # headers=['Fragments', 'Target Protein'],
529
  type='values',
530
  )
531