PhDFlo commited on
Commit
cc94fb3
·
1 Parent(s): ca622bc

Add config Text box

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -77,12 +77,13 @@ with gr.Blocks() as demo:
77
  # Chai1 Simulation Interface
78
  This interface allows you to run Chai1 simulations on a given Fasta sequence file.
79
  """)
80
- inp = gr.Textbox(placeholder="Fasta Sequence file", label="Input Fasta file")
 
81
  btn = gr.Button("Run")
82
  out = Molecule3D(label="Molecule3D", reps=reps)
83
- btn.click(fn=compute_Chai1, inputs=[inp], outputs=[out])
84
 
85
- gr.Markdown(
86
  """
87
  You can input a Fasta file containing the sequence of the molecule you want to simulate.
88
  The output will be a 3D representation of the molecule based on the Chai1 model.
 
77
  # Chai1 Simulation Interface
78
  This interface allows you to run Chai1 simulations on a given Fasta sequence file.
79
  """)
80
+ inp1 = gr.Textbox(placeholder="Fasta Sequence file", label="Input Fasta file")
81
+ inp2 = gr.Textbox(placeholder="Config file", label="JSON Config file")
82
  btn = gr.Button("Run")
83
  out = Molecule3D(label="Molecule3D", reps=reps)
84
+ btn.click(fn=compute_Chai1, inputs=[inp1 , inp2], outputs=[out])
85
 
86
+ gr.Markdown(
87
  """
88
  You can input a Fasta file containing the sequence of the molecule you want to simulate.
89
  The output will be a 3D representation of the molecule based on the Chai1 model.