Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -169,13 +169,15 @@ with gr.Blocks() as demo1:
|
|
169 |
input_seqs = gr.File(label="FASTA File With Protein Sequences")
|
170 |
@gr.render(inputs=input_seqs)
|
171 |
def show_split(inputfile):
|
172 |
-
if
|
173 |
gr.Markdown("## No Input Provided")
|
174 |
else:
|
175 |
seqs = load_protein_sequences(inputfile)
|
|
|
176 |
for header in seqs:
|
177 |
pdb_path = f'{seq.replace(" ", "_").replace(",","")}.pdb'
|
178 |
html, pdb = fold_protein_wpdb(seqs[seq], pdb_path)
|
|
|
179 |
gr.HTML(html, label=f"{seq} structural representation")
|
180 |
Molecule3D(pdb, label=f"{seq} molecular representation")
|
181 |
|
|
|
169 |
input_seqs = gr.File(label="FASTA File With Protein Sequences")
|
170 |
@gr.render(inputs=input_seqs)
|
171 |
def show_split(inputfile):
|
172 |
+
if inputfile is None:
|
173 |
gr.Markdown("## No Input Provided")
|
174 |
else:
|
175 |
seqs = load_protein_sequences(inputfile)
|
176 |
+
print("Loaded sequences")
|
177 |
for header in seqs:
|
178 |
pdb_path = f'{seq.replace(" ", "_").replace(",","")}.pdb'
|
179 |
html, pdb = fold_protein_wpdb(seqs[seq], pdb_path)
|
180 |
+
print(f"Prediction for {seq} is over")
|
181 |
gr.HTML(html, label=f"{seq} structural representation")
|
182 |
Molecule3D(pdb, label=f"{seq} molecular representation")
|
183 |
|