Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -85,10 +85,11 @@ def generate(instruction, temperature=0.9, max_new_tokens=256, top_p=0.95, repet
|
|
| 85 |
|
| 86 |
examples = [
|
| 87 |
"A llama is in my lawn. How do I get rid of him?",
|
| 88 |
-
"
|
| 89 |
"How can I sort a list in Python?",
|
|
|
|
|
|
|
| 90 |
"How can I write a Java function to generate the nth Fibonacci number?",
|
| 91 |
-
"How many helicopters can a llama eat in one sitting?",
|
| 92 |
]
|
| 93 |
|
| 94 |
|
|
@@ -134,7 +135,7 @@ with gr.Blocks(theme=theme, analytics_enabled=False, css=css) as demo:
|
|
| 134 |
gr.Examples(
|
| 135 |
examples=examples,
|
| 136 |
inputs=[instruction],
|
| 137 |
-
cache_examples=
|
| 138 |
fn=process_example,
|
| 139 |
outputs=[output],
|
| 140 |
)
|
|
|
|
| 85 |
|
| 86 |
examples = [
|
| 87 |
"A llama is in my lawn. How do I get rid of him?",
|
| 88 |
+
"What are the various algorithms to sort a list?",
|
| 89 |
"How can I sort a list in Python?",
|
| 90 |
+
"How do I ask a question in StackOverflow?",
|
| 91 |
+
"How to beat a Hitmonlee in a Pokemon battle?",
|
| 92 |
"How can I write a Java function to generate the nth Fibonacci number?",
|
|
|
|
| 93 |
]
|
| 94 |
|
| 95 |
|
|
|
|
| 135 |
gr.Examples(
|
| 136 |
examples=examples,
|
| 137 |
inputs=[instruction],
|
| 138 |
+
cache_examples=False,
|
| 139 |
fn=process_example,
|
| 140 |
outputs=[output],
|
| 141 |
)
|