Update app.py
Browse files
app.py
CHANGED
|
@@ -202,26 +202,6 @@ def create_instruct_demo():
|
|
| 202 |
with gr.Column():
|
| 203 |
outputs = gr.Textbox(lines=10, label="Output")
|
| 204 |
|
| 205 |
-
inputs = [instruction, input, max_len, temp, top_p]
|
| 206 |
-
|
| 207 |
-
examples = [
|
| 208 |
-
"Tell me about alpacas.",
|
| 209 |
-
"Write a Python program that prints the first 10 Fibonacci numbers.",
|
| 210 |
-
"Write a conversation between the sun and pluto.",
|
| 211 |
-
"Write a theory to explain why cat never existed",
|
| 212 |
-
]
|
| 213 |
-
examples = [
|
| 214 |
-
[x, "none", 128, 0.1, 0.75]
|
| 215 |
-
for x in examples]
|
| 216 |
-
|
| 217 |
-
gr.Examples(
|
| 218 |
-
examples=examples,
|
| 219 |
-
inputs=inputs,
|
| 220 |
-
outputs=outputs,
|
| 221 |
-
fn=instruct_generate,
|
| 222 |
-
cache_examples=os.getenv('SYSTEM') == 'spaces'
|
| 223 |
-
)
|
| 224 |
-
run_botton.click(fn=instruct_generate, inputs=inputs, outputs=outputs)
|
| 225 |
return instruct_demo
|
| 226 |
|
| 227 |
|
|
|
|
| 202 |
with gr.Column():
|
| 203 |
outputs = gr.Textbox(lines=10, label="Output")
|
| 204 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 205 |
return instruct_demo
|
| 206 |
|
| 207 |
|