Tonic commited on
Commit
a653c8d
1 Parent(s): db3880c

import spaces , add decorator

Browse files
Files changed (3) hide show
  1. .gitattributes +1 -0
  2. app.py +2 -0
  3. demovideo/demo.mp4 +3 -0
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ *.mp4 filter=lfs diff=lfs merge=lfs -text
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import gradio as gr
2
  import py3Dmol
3
  import io
@@ -309,6 +310,7 @@ def prediction_visualization(pdb_file, num_runs: int, noise_level: float, num_fr
309
  view_data = visualize_after_pred(protein, best_aligned[1])
310
  return view_data, f"Best cRMSD: {best_aligned[0]:.4f}"
311
 
 
312
  def run_prediction(pdb_file, num_runs, noise_level, num_frames, temperature, num_steps, progress=gr.Progress()):
313
  try:
314
  if pdb_file is None:
 
1
+ import spaces
2
  import gradio as gr
3
  import py3Dmol
4
  import io
 
310
  view_data = visualize_after_pred(protein, best_aligned[1])
311
  return view_data, f"Best cRMSD: {best_aligned[0]:.4f}"
312
 
313
+ @spaces.GPU
314
  def run_prediction(pdb_file, num_runs, noise_level, num_frames, temperature, num_steps, progress=gr.Progress()):
315
  try:
316
  if pdb_file is None:
demovideo/demo.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fa79153abc111e4686e121dca7fb9a8ca7dbde9b2e2555b5a5d117ad2452edc5
3
+ size 11042989