colbyford commited on
Commit
affd796
1 Parent(s): c72f5fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -5
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
- fn=make_seq,
15
- inputs=gr.Slider(10, 100),
16
- outputs="text"
 
 
 
 
 
 
 
 
17
  )
 
 
 
 
 
 
 
 
 
 
 
18
 
19
- iface.launch()
 
 
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()