Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1 +1,15 @@
|
|
1 |
-
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
from foldingdiff import sampling
|
4 |
+
|
5 |
+
def sample_at_length(l:int):
|
6 |
+
l = int(l)
|
7 |
+
s = sample_simple("wukevin/foldingdiff_cath", n=1, sweep_lengths=(l, l+1))
|
8 |
+
return s[0]
|
9 |
+
|
10 |
+
interface = gr.Interface(
|
11 |
+
fn=sample,
|
12 |
+
inputs=gr.Number(value=55, label="Protein backbone length to generate", show_label=True, precision=0),
|
13 |
+
outputs=gr.Dataframe(),
|
14 |
+
)
|
15 |
+
interface.launch()
|