masharpe commited on
Commit
36113cf
·
1 Parent(s): ea06d0c

Restore examples (now that caching is disabled)

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -149,20 +149,16 @@ demo = gr.Interface(
149
  f'Model: `{repo_id}`.'
150
  ,
151
  examples=[
152
- # To mitigate the slow caching, produce only 1 response.
153
- [48, 1, 'Count from 1 to 5.', 'Count from 1 to 6.'],
154
 
155
  # This would be a good example, but Qwen2-0.5B occasionally goes off-color.
156
  #[48, 8, 'Tell me a joke.', 'Tell me a funny joke.'],
157
 
158
- # To avoid the slow caching, omit these.
159
- #[48, 8, 'Calculate 3 + 4', 'Calculate 3 + 5'],
160
- #[48, 8, "What's the capital of Canada?", "What's the capital of France?"],
161
  ],
162
  # In HuggingFace Spaces, this defaults to true, which makes startup
163
  # take a very long time.
164
- # This however currently seems to be bugged,
165
- # in that Spaces will cache the examples regardless.
166
  cache_examples=False,
167
  )
168
 
 
149
  f'Model: `{repo_id}`.'
150
  ,
151
  examples=[
152
+ [48, 8, 'Count from 1 to 5.', 'Count from 1 to 6.'],
 
153
 
154
  # This would be a good example, but Qwen2-0.5B occasionally goes off-color.
155
  #[48, 8, 'Tell me a joke.', 'Tell me a funny joke.'],
156
 
157
+ [48, 8, 'Calculate 3 + 4', 'Calculate 3 + 5'],
158
+ [48, 8, "What's the capital of Canada?", "What's the capital of France?"],
 
159
  ],
160
  # In HuggingFace Spaces, this defaults to true, which makes startup
161
  # take a very long time.
 
 
162
  cache_examples=False,
163
  )
164