Disable example caching
Browse files
app.py
CHANGED
@@ -150,10 +150,14 @@ demo = gr.Interface(
|
|
150 |
,
|
151 |
examples=[
|
152 |
[48, 8, 'Count from 1 to 5.', 'Count from 1 to 6.'],
|
153 |
-
|
|
|
154 |
[48, 8, 'Calculate 3 + 4', 'Calculate 3 + 5'],
|
155 |
[48, 8, "What's the capital of Canada?", "What's the capital of France?"],
|
156 |
],
|
|
|
|
|
|
|
157 |
)
|
158 |
|
159 |
demo.launch()
|
|
|
150 |
,
|
151 |
examples=[
|
152 |
[48, 8, 'Count from 1 to 5.', 'Count from 1 to 6.'],
|
153 |
+
# This would be a good example, but Qwen2-0.5B occasionally goes off-color.
|
154 |
+
#[48, 8, 'Tell me a joke.', 'Tell me a funny joke.'],
|
155 |
[48, 8, 'Calculate 3 + 4', 'Calculate 3 + 5'],
|
156 |
[48, 8, "What's the capital of Canada?", "What's the capital of France?"],
|
157 |
],
|
158 |
+
# In HuggingFace Spaces, this defaults to true, which makes startup
|
159 |
+
# take a very long time.
|
160 |
+
cache_examples=False,
|
161 |
)
|
162 |
|
163 |
demo.launch()
|