ThorbenFroehlking commited on
Commit
ac18eb6
·
1 Parent(s): 5576cdd
Files changed (2) hide show
  1. .ipynb_checkpoints/app-checkpoint.py +8 -1
  2. app.py +8 -1
.ipynb_checkpoints/app-checkpoint.py CHANGED
@@ -192,7 +192,14 @@ def predict_utils(sequence):
192
  normalized_scores = normalize_scores(raw_scores)
193
 
194
  return raw_scores,normalized_scores
195
-
 
 
 
 
 
 
 
196
  def process_pdb(pdb_id_or_file, segment, score_type='normalized'):
197
  # Determine if input is a PDB ID or file path
198
  if pdb_id_or_file.endswith('.pdb'):
 
192
  normalized_scores = normalize_scores(raw_scores)
193
 
194
  return raw_scores,normalized_scores
195
+
196
+ gr.Interface(
197
+ fn=predict_utils,
198
+ inputs=gr.Textbox(),
199
+ outputs=[gr.JSON(), gr.JSON()],
200
+ live=False
201
+ ).launch(share=False, inline=False, show_api=False, prevent_thread_lock=True)
202
+
203
  def process_pdb(pdb_id_or_file, segment, score_type='normalized'):
204
  # Determine if input is a PDB ID or file path
205
  if pdb_id_or_file.endswith('.pdb'):
app.py CHANGED
@@ -192,7 +192,14 @@ def predict_utils(sequence):
192
  normalized_scores = normalize_scores(raw_scores)
193
 
194
  return raw_scores,normalized_scores
195
-
 
 
 
 
 
 
 
196
  def process_pdb(pdb_id_or_file, segment, score_type='normalized'):
197
  # Determine if input is a PDB ID or file path
198
  if pdb_id_or_file.endswith('.pdb'):
 
192
  normalized_scores = normalize_scores(raw_scores)
193
 
194
  return raw_scores,normalized_scores
195
+
196
+ gr.Interface(
197
+ fn=predict_utils,
198
+ inputs=gr.Textbox(),
199
+ outputs=[gr.JSON(), gr.JSON()],
200
+ live=False
201
+ ).launch(share=False, inline=False, show_api=False, prevent_thread_lock=True)
202
+
203
  def process_pdb(pdb_id_or_file, segment, score_type='normalized'):
204
  # Determine if input is a PDB ID or file path
205
  if pdb_id_or_file.endswith('.pdb'):