Zaixi commited on
Commit
10622c0
·
1 Parent(s): 5efbcd3
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -209,8 +209,8 @@ def create_protenix_json(input_data: Dict) -> List[Dict]:
209
  }]
210
 
211
 
212
- @torch.inference_mode()
213
- @spaces.GPU(duration=120) # Specify a duration to avoid timeout
214
  def predict_structure(input_collector: dict):
215
  """Handle both input types"""
216
  os.makedirs("./output", exist_ok=True)
@@ -450,7 +450,7 @@ with gr.Blocks(title="FoldMark", css=custom_css) as demo:
450
  outputs=[view3d, confidence_plot_image, cif_file]
451
  )
452
 
453
- @spaces.GPU
454
  def is_watermarked(file):
455
  # Generate a unique subdirectory and filename
456
  unique_id = str(uuid.uuid4())
 
209
  }]
210
 
211
 
212
+ #@torch.inference_mode()
213
+ #@spaces.GPU(duration=120) # Specify a duration to avoid timeout
214
  def predict_structure(input_collector: dict):
215
  """Handle both input types"""
216
  os.makedirs("./output", exist_ok=True)
 
450
  outputs=[view3d, confidence_plot_image, cif_file]
451
  )
452
 
453
+ #@spaces.GPU
454
  def is_watermarked(file):
455
  # Generate a unique subdirectory and filename
456
  unique_id = str(uuid.uuid4())