vladimir.manuylov commited on
Commit
e7732b8
·
1 Parent(s): 296764f

fixed the bug

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -161,8 +161,6 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
161
  100]
162
  ],
163
  inputs=[protein_sequence, num_samples],
164
- outputs=output_smiles,
165
- fn=generate_smiles_for_sequence,
166
  cache_examples=False,
167
  )
168
 
@@ -172,7 +170,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
172
  *Model developed by Gero AI. For more details, check out the [original repository](https://github.com/gero-science/ProtoBind-Diff).*
173
  """
174
  )
175
- protein_sequence.input(enable_btn, inputs=protein_sequence, outputs=submit_btn)
176
 
177
  submit_btn.click(
178
  fn=generate_smiles_for_sequence,
 
161
  100]
162
  ],
163
  inputs=[protein_sequence, num_samples],
 
 
164
  cache_examples=False,
165
  )
166
 
 
170
  *Model developed by Gero AI. For more details, check out the [original repository](https://github.com/gero-science/ProtoBind-Diff).*
171
  """
172
  )
173
+ protein_sequence.change(enable_btn, inputs=protein_sequence, outputs=submit_btn)
174
 
175
  submit_btn.click(
176
  fn=generate_smiles_for_sequence,