Nikki5 commited on
Commit
5aa1009
·
1 Parent(s): ae5b61f
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -385,7 +385,9 @@ button[aria-label="Copy all"] {
385
 
386
  def init_support_choices(request: gr.Request):
387
  c_value = request.query_params.get("c", "1")
388
-
 
 
389
  if c_value == "0":
390
  assigned_type = assign_support_type_from_counts()
391
  print("..............................................................................................................")
@@ -393,7 +395,7 @@ def init_support_choices(request: gr.Request):
393
  return (
394
  [],
395
  gr.update(
396
- choices=[],
397
  value=assigned_type,
398
  visible=False,
399
  interactive=False
@@ -401,10 +403,6 @@ def init_support_choices(request: gr.Request):
401
  gr.update(visible=False)
402
  )
403
 
404
- rng = random.Random(request.session_hash)
405
- choices = list(MODE_INSTRUCTIONS.keys())
406
- rng.shuffle(choices)
407
-
408
  return (
409
  choices,
410
  gr.update(
 
385
 
386
  def init_support_choices(request: gr.Request):
387
  c_value = request.query_params.get("c", "1")
388
+ rng = random.Random(request.session_hash)
389
+ choices = list(MODE_INSTRUCTIONS.keys())
390
+ rng.shuffle(choices)
391
  if c_value == "0":
392
  assigned_type = assign_support_type_from_counts()
393
  print("..............................................................................................................")
 
395
  return (
396
  [],
397
  gr.update(
398
+ choices=choices,
399
  value=assigned_type,
400
  visible=False,
401
  interactive=False
 
403
  gr.update(visible=False)
404
  )
405
 
 
 
 
 
406
  return (
407
  choices,
408
  gr.update(