mrfakename commited on
Commit
bb9126f
·
verified ·
1 Parent(s): f0b5f6a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -39,7 +39,7 @@ The model is suitable for commercial use and is licensed under the Apache licens
39
 
40
  I am not affiliated with the authors of the model (Hugging Face).
41
 
42
- Note: for longer generation (>512), keep clicking "Generate!" The demo is currently limited to 512 demos per generation to ensure all users have access to this service. Please note that once you start generating, you cannot stop generating until the generation is done.
43
 
44
  By [mrfakename](https://twitter.com/realmrfakename).
45
 
@@ -48,13 +48,13 @@ Duplicate this Space to skip the wait!
48
  gr.DuplicateButton()
49
  text = gr.Textbox(label="Prompt", lines=10, interactive=True, placeholder="Write a detailed analogy between mathematics and a lighthouse.")
50
  temp = gr.Slider(label="Temperature", minimum=0.1, maximum=1.5, value=0.7)
51
- maxlen = gr.Slider(label="Max Length", minimum=4, maximum=512, value=75)
52
  go = gr.Button("Generate", variant="primary")
53
  go.click(generate_text, inputs=[text, temp, maxlen], outputs=[text], concurrency_limit=2)
54
  examples = gr.Examples(
55
  [
56
  ['[INST] Write a detailed analogy between mathematics and a lighthouse. [/INST]', 0.7, 75],
57
- ['[INST] Generate a story involving a dog, an astronaut and a baker [/INST]', 0.7, 75],
58
  ['''def print_prime(n):
59
  """
60
  Print all primes between 1 and n
 
39
 
40
  I am not affiliated with the authors of the model (Hugging Face).
41
 
42
+ Note: for longer generations (>1024), keep clicking "Generate!" The demo is currently limited to 1024 demos per generation to ensure all users have access to this service. Please note that once you start generating, you cannot stop generating until the generation is done.
43
 
44
  By [mrfakename](https://twitter.com/realmrfakename).
45
 
 
48
  gr.DuplicateButton()
49
  text = gr.Textbox(label="Prompt", lines=10, interactive=True, placeholder="Write a detailed analogy between mathematics and a lighthouse.")
50
  temp = gr.Slider(label="Temperature", minimum=0.1, maximum=1.5, value=0.7)
51
+ maxlen = gr.Slider(label="Max Length", minimum=4, maximum=1024, value=75)
52
  go = gr.Button("Generate", variant="primary")
53
  go.click(generate_text, inputs=[text, temp, maxlen], outputs=[text], concurrency_limit=2)
54
  examples = gr.Examples(
55
  [
56
  ['[INST] Write a detailed analogy between mathematics and a lighthouse. [/INST]', 0.7, 75],
57
+ ['[INST] Generate a story involving a dog, an astronaut and a baker [/INST]', 0.7, 1024],
58
  ['''def print_prime(n):
59
  """
60
  Print all primes between 1 and n