Omnibus commited on
Commit
fb2354b
·
verified ·
1 Parent(s): 562495d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -373,7 +373,14 @@ examples =[
373
  ]
374
  def clear_fn():
375
  return None,None
376
- rand_val=random.randint(1,999999999999)
 
 
 
 
 
 
 
377
  with gr.Blocks() as app:
378
  gr.HTML("""<center><h1>Mixtral 8x7B RPG</h1><h3>Role Playing Game Master</h3>""")
379
  with gr.Group():
 
373
  ]
374
  def clear_fn():
375
  return None,None
376
+ rand_val=random.randint(1,99999999999)
377
+
378
+ def check_rand(inp,val):
379
+ if inp==True:
380
+ return gr.Slider(label="Seed", minimum=1, maximum=99999999999, value=random.randint(1,99999999999))
381
+ else:
382
+ return gr.Slider(label="Seed", minimum=1, maximum=99999999999, value=int(val))
383
+
384
  with gr.Blocks() as app:
385
  gr.HTML("""<center><h1>Mixtral 8x7B RPG</h1><h3>Role Playing Game Master</h3>""")
386
  with gr.Group():