JingyeChen commited on
Commit
5695ac1
1 Parent(s): f7ea271
Files changed (1) hide show
  1. app.py +17 -1
app.py CHANGED
@@ -437,7 +437,7 @@ with gr.Blocks() as demo:
437
  undo.click(exe_undo, [i,t],[i])
438
  skip_button.click(skip_fun, [i,t])
439
 
440
- radio = gr.Radio(["TextDiffuser-2", "TextDiffuser-2-LCM"], label="Choices of models", value="TextDiffuser-2")
441
  slider_step = gr.Slider(minimum=1, maximum=50, value=20, step=1, label="Sampling step", info="The sampling step for TextDiffuser-2.")
442
  slider_guidance = gr.Slider(minimum=1, maximum=9, value=7.5, step=0.5, label="Scale of classifier-free guidance", info="The scale of cfg and is set to 7.5 in default. When using LCM, cfg is set to 1.")
443
  slider_batch = gr.Slider(minimum=1, maximum=4, value=4, step=1, label="Batch size", info="The number of images to be sampled.")
@@ -490,6 +490,22 @@ with gr.Blocks() as demo:
490
  Please note that the demo is intended for academic and research purposes <b>ONLY</b>. Any use of the demo for generating inappropriate content is strictly prohibited. The responsibility for any misuse or inappropriate use of the demo lies solely with the users who generated such content, and this demo shall not be held liable for any such use.
491
  </h3>
492
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
493
  """
494
  )
495
 
 
437
  undo.click(exe_undo, [i,t],[i])
438
  skip_button.click(skip_fun, [i,t])
439
 
440
+ radio = gr.Radio(["TextDiffuser-2", "TextDiffuser-2-LCM"], label="Choice of models", value="TextDiffuser-2")
441
  slider_step = gr.Slider(minimum=1, maximum=50, value=20, step=1, label="Sampling step", info="The sampling step for TextDiffuser-2.")
442
  slider_guidance = gr.Slider(minimum=1, maximum=9, value=7.5, step=0.5, label="Scale of classifier-free guidance", info="The scale of cfg and is set to 7.5 in default. When using LCM, cfg is set to 1.")
443
  slider_batch = gr.Slider(minimum=1, maximum=4, value=4, step=1, label="Batch size", info="The number of images to be sampled.")
 
490
  Please note that the demo is intended for academic and research purposes <b>ONLY</b>. Any use of the demo for generating inappropriate content is strictly prohibited. The responsibility for any misuse or inappropriate use of the demo lies solely with the users who generated such content, and this demo shall not be held liable for any such use.
491
  </h3>
492
  </div>
493
+ <div>
494
+ <!-- Default Statcounter code for Business
495
+ https://huggingface.co/spaces/JingyeChen22/TextDiffuser-2 -->
496
+ <script type="text/javascript">
497
+ var sc_project=12947957;
498
+ var sc_invisible=1;
499
+ var sc_security="a79edbfe";
500
+ </script>
501
+ <script type="text/javascript"
502
+ src="https://www.statcounter.com/counter/counter.js" async></script>
503
+ <noscript><div class="statcounter"><a title="Web Analytics"
504
+ href="https://statcounter.com/" target="_blank"><img class="statcounter"
505
+ src="https://c.statcounter.com/12947957/0/a79edbfe/1/" alt="Web Analytics"
506
+ referrerPolicy="no-referrer-when-downgrade"></a></div></noscript>
507
+ <!-- End of Statcounter Code -->
508
+ </div>
509
  """
510
  )
511