Spaces:
Paused
Paused
Update app.py
Browse files12380 unmodified lines848586878889import osimport gradio as gr80 unmodified linesinterface = gr.Interface(fn=sample_at_length,inputs=[gr.Number(value=80, label="Protein backbone length to generate", show_label=True, precision=0),gr.Number(value=42, label="Random seed", show_label=True, precision=0),1234567891011121380 unmodified lines949596979899100101"""foldingdiff implements a diffusion model for generating protein structures. Inspired by the biological folding process,we perform diffusion on the angles between amino acid residues rather than the absolute 3D coordinates of each residue.By effectively treating each residue as its own reference frame, we shift the equivariance constraints into therepresentation space itself; this allows us to use a vanilla transformer model as our model. Here, we provide a simpleonline interface for generating single backbones with a given length, starting from a given random seed.See our preprint at https://arxiv.org/abs/2209.15611 and our full codebase at https://github.com/microsoft/foldingdiff"""import osimport gradio as gr80 unmodified linesinterface = gr.Interface(fn=sample_at_length,title="foldingdiff - protein backbone structure generation with diffusion models",description=__doc__,inputs=[gr.Number(value=80, label="Protein backbone length to generate", show_label=True, precision=0),gr.Number(value=42, label="Random seed", show_label=True, precision=0),
app.py+12