fffiloni commited on
Commit
4079d46
·
verified ·
1 Parent(s): 6307e72

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -261,7 +261,7 @@ with gr.Blocks(css=css) as demo:
261
  with gr.Column():
262
  current_sleep_time = gr.Number(visible=False)
263
  print(f"loaded demo: {current_sleep_time}")
264
- if sleep_time > 1:
265
  gr.HTML(f'''
266
  <div class="gr-prose">
267
  <h2>in order to train properly your B-LoRa, you need to set space sleep time to "Don't sleep"</h2>
@@ -287,7 +287,7 @@ with gr.Blocks(css=css) as demo:
287
  checkpoint_step = gr.Number(label="checkpoint step", visible=False, value=500)
288
 
289
 
290
- if sleep_time > 1:
291
  train_btn = gr.Button("Train B-LoRa", visible=False)
292
  else:
293
  train_btn = gr.Button("Train B-LoRa", visible=True)
 
261
  with gr.Column():
262
  current_sleep_time = gr.Number(visible=False)
263
  print(f"loaded demo: {current_sleep_time}")
264
+ if sleep_time > 1 and sleep_time is not None:
265
  gr.HTML(f'''
266
  <div class="gr-prose">
267
  <h2>in order to train properly your B-LoRa, you need to set space sleep time to "Don't sleep"</h2>
 
287
  checkpoint_step = gr.Number(label="checkpoint step", visible=False, value=500)
288
 
289
 
290
+ if sleep_time > 1 and sleep_time is not None:
291
  train_btn = gr.Button("Train B-LoRa", visible=False)
292
  else:
293
  train_btn = gr.Button("Train B-LoRa", visible=True)