Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -10,10 +10,30 @@ def make_seq(seq_len):
|
|
10 |
tokeinzed_sample, generated_sequence = generate_oaardm(model, tokenizer, seq_len, batch_size=1, device='cpu')
|
11 |
return generated_sequence
|
12 |
|
13 |
-
iface = gr.Interface(
|
14 |
-
|
15 |
-
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
-
|
|
|
|
10 |
tokeinzed_sample, generated_sequence = generate_oaardm(model, tokenizer, seq_len, batch_size=1, device='cpu')
|
11 |
return generated_sequence
|
12 |
|
13 |
+
# iface = gr.Interface(
|
14 |
+
# fn=make_seq,
|
15 |
+
# inputs=gr.Slider(10, 100),
|
16 |
+
# outputs="text"
|
17 |
+
# )
|
18 |
+
|
19 |
+
# iface.launch()
|
20 |
+
|
21 |
+
|
22 |
+
with gr.Blocks() as edapp:
|
23 |
+
gr.Markdown(
|
24 |
+
"# EvoDiff"
|
25 |
)
|
26 |
+
with gr.Row():
|
27 |
+
gr.Markdown(
|
28 |
+
"""
|
29 |
+
## Unconditional sequence generation
|
30 |
+
Generate a sequence with EvoDiff-Seq-OADM 38M
|
31 |
+
""")
|
32 |
+
gr.Interface(
|
33 |
+
fn=make_seq,
|
34 |
+
inputs=gr.Slider(10, 100),
|
35 |
+
outputs="text"
|
36 |
+
)
|
37 |
|
38 |
+
if __name__ == "__main__":
|
39 |
+
edapp.launch()
|