lbugnon commited on
Commit
02b1613
·
1 Parent(s): c0ce260

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -20,11 +20,10 @@ def fold(id, sequence):
20
 
21
  sp.run(f"sincFold pred {sequence} --name {id} -o output --draw --draw-resolution {resolution}", shell=True)
22
 
23
- try:
24
- dotbracket = ct2dot(ct_file)
25
- except:
26
  dotbracket = None
27
- structure_draw = "background.jpg"
28
  msg = "CT to dotbracket failed (check ct file)"
29
 
30
  with open(fasta_file, "w") as f:
@@ -51,7 +50,7 @@ def run():
51
  lines=3),
52
  gr.File(label="Fasta file"),
53
  gr.File(label="CT file"),
54
- gr.Textbox(label="Message"),
55
  ],
56
  examples=[
57
  ["srp_Shig.flex._CP000266", "CCGUCAGGUCCGGAAGGAAGCAGCGGUA"],
 
20
 
21
  sp.run(f"sincFold pred {sequence} --name {id} -o output --draw --draw-resolution {resolution}", shell=True)
22
 
23
+ dotbracket = ct2dot(ct_file)
24
+ if not dotbracket:
 
25
  dotbracket = None
26
+ structure_draw = None
27
  msg = "CT to dotbracket failed (check ct file)"
28
 
29
  with open(fasta_file, "w") as f:
 
50
  lines=3),
51
  gr.File(label="Fasta file"),
52
  gr.File(label="CT file"),
53
+ gr.Textbox(label=""),
54
  ],
55
  examples=[
56
  ["srp_Shig.flex._CP000266", "CCGUCAGGUCCGGAAGGAAGCAGCGGUA"],