Josh Nguyen commited on
Commit
6797eb5
1 Parent(s): ed97a98

Update app

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -62,7 +62,6 @@ def generate_text(prompt: str,
62
  streamer=inputs,
63
  max_new_tokens=max_new_tokens,
64
  do_sample=True,
65
- return_full_text=True,
66
  top_p=top_p,
67
  top_k=top_k,
68
  temperature=temperature,
@@ -87,8 +86,16 @@ demo = gr.Interface(
87
  container=False,
88
  show_label=False,
89
  placeholder="Enter some text...",
 
90
  scale=10,
91
  ),
 
 
 
 
 
 
 
92
  gr.Slider(
93
  label="Temperature",
94
  minimum=0.01,
@@ -117,6 +124,7 @@ demo = gr.Interface(
117
  show_label=False,
118
  placeholder="Generated output...",
119
  scale=10,
 
120
  )
121
  ],
122
  )
 
62
  streamer=inputs,
63
  max_new_tokens=max_new_tokens,
64
  do_sample=True,
 
65
  top_p=top_p,
66
  top_k=top_k,
67
  temperature=temperature,
 
86
  container=False,
87
  show_label=False,
88
  placeholder="Enter some text...",
89
+ lines=10,
90
  scale=10,
91
  ),
92
+ gr.Slider(
93
+ label="Maximum new tokens",
94
+ minimum=1,
95
+ maximum=4096,
96
+ step=1,
97
+ value=1024,
98
+ ),
99
  gr.Slider(
100
  label="Temperature",
101
  minimum=0.01,
 
124
  show_label=False,
125
  placeholder="Generated output...",
126
  scale=10,
127
+ lines=10,
128
  )
129
  ],
130
  )