simonduerr commited on
Commit
594f1f8
1 Parent(s): 8fdecef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -274,7 +274,8 @@ with gr.Blocks() as demo:
274
  with gr.Tab("Input"):
275
  inp=CofoldingInput(label="Input")
276
  hard_case = gr.Checkbox(False, label="Hard case (increase MAXCYCLE to 10)")
277
- if os.environ.get("SPACE_HOST")=="":
 
278
  dry_run = gr.Checkbox(True, label="Only generate input files (dry run)", interactive=False)
279
  else:
280
  dry_run = gr.Checkbox(True, label="Only generate input files (dry run)")
 
274
  with gr.Tab("Input"):
275
  inp=CofoldingInput(label="Input")
276
  hard_case = gr.Checkbox(False, label="Hard case (increase MAXCYCLE to 10)")
277
+ # only allow running the predictions if local
278
+ if os.environ.get("SPACE_HOST")!="":
279
  dry_run = gr.Checkbox(True, label="Only generate input files (dry run)", interactive=False)
280
  else:
281
  dry_run = gr.Checkbox(True, label="Only generate input files (dry run)")